Gregory Nutt d209e0e238 Add file missed in last commit. Fix naming in some configuration items. 7 年之前
..
Kconfig d209e0e238 Add file missed in last commit. Fix naming in some configuration items. 7 年之前
Make.defs 12f95c6f6b Add procfs/kmm to show the state of the kernel heap 8 年之前
README.txt 015072a4d4 fs/binfs/README.txt: Add a README file 11 年之前
fs_procfs.c d209e0e238 Add file missed in last commit. Fix naming in some configuration items. 7 年之前
fs_procfscpuload.c c67943ed1d procfs: Most stat() implementations were not initializating the st_atime, st_ctime, and st_mtime fields. 7 年之前
fs_procfskmm.c c67943ed1d procfs: Most stat() implementations were not initializating the st_atime, st_ctime, and st_mtime fields. 7 年之前
fs_procfsproc.c d209e0e238 Add file missed in last commit. Fix naming in some configuration items. 7 年之前
fs_procfsuptime.c ae8d5821e0 procfs: Fix incorrect uptime with CONFIG_SYSTEM_TIME64 7 年之前
fs_procfsutil.c 9008308b64 Remove some block comments before empty code sections 8 年之前
fs_skeleton.c be7a904d1b procfs skeleton: Some additional, purely cosmetic updates. 7 年之前

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
0x527420