From cee429beacab97c06d38c5292f1053ff2f9762c1 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 28 Nov 2015 17:52:25 -0600 Subject: [PATCH] Update NSH README. Update ps examples --- nshlib/README.txt | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/nshlib/README.txt b/nshlib/README.txt index 30cf0735f..d5669dae9 100644 --- a/nshlib/README.txt +++ b/nshlib/README.txt @@ -495,6 +495,12 @@ o ifconfig [nic_name [|dhcp]] [dr|gw|gateway ] [netmask if networking statistics are enabled (CONFIG_NET_STATISTICS), then this command will also show the detailed state of transfers by protocol. + NOTE: This commands depends upon having the rpocfs file system configured + into the system. The procfs file system must also have been mounted + with a command like: + + nsh> mount -t procfs /proc + o ifdown Take down the interface identified by the name . @@ -810,13 +816,19 @@ o ps Show the currently active threads and tasks. For example, nsh> ps - PID PRI SCHD TYPE NP STATE NAME - 0 0 FIFO TASK READY Idle Task() - 1 128 RR TASK RUNNING init() - 2 128 FIFO TASK WAITSEM nsh_telnetmain() - 3 100 RR PTHREAD WAITSEM (21) + PID PRI POLICY TYPE NPX STATE EVENT SIGMASK COMMAND + 0 0 FIFO Kthread --- Ready 00000000 Idle Task + 1 128 RR Task --- Running 00000000 init + 2 128 FIFO Task --- Waiting Semaphore 00000000 nsh_telnetmain() + 3 100 RR pthread --- Waiting Semaphore 00000000 (21) nsh> + NOTE: This commands depends upon having the rpocfs file system configured + into the system. The procfs file system must also have been mounted + with a command like: + + nsh> mount -t procfs /proc + o put [-b|-n] [-f ] -h Copy the file at to the host whose IP address is