nuttx/fs/procfs
lilei19 38f64f559d change strcpy to strlcpy
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-02-24 12:15:40 +08:00
..
fs_procfs.c fs/procfs: sort level0 process id 2023-01-30 14:57:43 +08:00
fs_procfscpuload.c fs/procfs: fix the issue of /proc/cpuload in SMP 2023-02-02 22:48:30 +08:00
fs_procfscritmon.c
fs_procfsiobinfo.c iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
fs_procfsmeminfo.c procfs/meminfo: skip invalid character before memdump 2023-02-23 13:51:12 +08:00
fs_procfsproc.c sync ps/assert output 2023-02-17 23:35:44 +08:00
fs_procfstcbinfo.c
fs_procfsuptime.c fs/procfs: Avoid the cast in uptime_read 2022-12-24 11:26:48 -03:00
fs_procfsutil.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
fs_procfsversion.c
fs_skeleton.c change strcpy to strlcpy 2023-02-24 12:15:40 +08:00
Kconfig fs/procfs: Change FS_PROCFS_EXCLUDE_xxx default value to DEFAULT_SMALL 2022-10-18 15:10:26 +09:00
Make.defs
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