README.txt 826 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. fs/procfs README
  2. ================
  3. This is a tiny procfs file system that allows read-only access to a few
  4. attributes of a task or thread. This tiny procfs fs file system can be
  5. built into the system by enabling:
  6. CONFIG_FS_PROCFS=y
  7. It can then be mounted from the NSH command like like:
  8. nsh> mount -t procfs /proc
  9. Example
  10. =======
  11. NuttShell (NSH) NuttX-6.31
  12. nsh> mount -t procfs /proc
  13. nsh> ls /proc
  14. /proc:
  15. 0/
  16. 1/
  17. nsh> ls /proc/1
  18. /proc/1:
  19. status
  20. cmdline
  21. nsh> cat /proc/1/status
  22. Name: init
  23. Type: Task
  24. State: Running
  25. Priority: 100
  26. Scheduler: SCHED_FIFO
  27. SigMask: 00000000
  28. nsh> cat /proc/1/cmdline
  29. init
  30. nsh> sleep 100 &
  31. sleep [2:100]
  32. nsh> ls /proc
  33. ls /proc
  34. /proc:
  35. 0/
  36. 1/
  37. 2/
  38. nsh> cat /proc/2/cmdline
  39. <pthread> 0x527420