incubator-nuttx/fs/procfs
Gregory Nutt 425a2d1b2c fs/procfs/fs_procfsiobinfo.c: Fix error found in build testing. Needs to include nuttx/mm/iob.h. 2019-08-19 12:16:53 -06:00
..
Kconfig Merged in antmerlino/nuttx/iobinstrumentation (pull request #1001) 2019-08-16 22:42:25 +00:00
Make.defs Merged in antmerlino/nuttx/iobinstrumentation (pull request #1001) 2019-08-16 22:42:25 +00:00
README.txt Remove 'executable' bit on several files 2019-08-01 14:13:55 -06:00
fs_procfs.c Merged in antmerlino/nuttx/iobinstrumentation (pull request #1001) 2019-08-16 22:42:25 +00:00
fs_procfscpuload.c
fs_procfscritmon.c
fs_procfsiobinfo.c fs/procfs/fs_procfsiobinfo.c: Fix error found in build testing. Needs to include nuttx/mm/iob.h. 2019-08-19 12:16:53 -06:00
fs_procfsmeminfo.c fs/: Fix various coding standard issues found while testing tools/nxstyle.c 2019-03-01 15:01:04 -06:00
fs_procfsproc.c sched/: Correct some naming. The NuttX task groups have been using the acroynum 'gid' and also the type 'gid_t' for the the task group ID. That is incorrect. Than naming is reserved for use with group permissions. So these were all named to grpid and grpid_t so that it is clearer that these refer to NuttX task group IDs, and not to group permissions. 2019-08-02 10:01:30 -06:00
fs_procfsuptime.c fs/procfs/fs_procfsuptime: Fixed type warning. 2019-08-07 07:56:10 -06:00
fs_procfsutil.c
fs_procfsversion.c
fs_skeleton.c fs/: Fix various coding standard issues found while testing tools/nxstyle.c 2019-03-01 15:01:04 -06:00

README.txt

fs/procfs README
================

  This is a tiny procfs file system that allows read-only access to a few
  attributes of a task or thread.  This tiny procfs fs file system can be
  built into the system by enabling:

    CONFIG_FS_PROCFS=y

  It can then be mounted from the NSH command like like:

    nsh> mount -t procfs /proc

Example
=======

  NuttShell (NSH) NuttX-6.31
  nsh> mount -t procfs /proc

  nsh> ls /proc
  /proc:
   0/
   1/

  nsh> ls /proc/1
  /proc/1:
   status
   cmdline

  nsh> cat /proc/1/status
  Name:       init
  Type:       Task
  State:      Running
  Priority:   100
  Scheduler:  SCHED_FIFO
  SigMask:    00000000

  nsh> cat /proc/1/cmdline
  init

  nsh> sleep 100 &
  sleep [2:100]
  nsh> ls /proc
  ls /proc
  /proc:
   0/
   1/
   2/

  nsh> cat /proc/2/cmdline
  <pthread> 0x527420