Each task has its own subdirecty in /proc containing information about that task. For example:
$ ps -A PID TTY TIME CMD 8284 pts/9 00:00:00 tcsh 9206 pts/9 00:00:00 ps $ cd /proc/8284 $ cat status Name: tcsh State: S (sleeping) ...
See the man page for proc for more information (man 5 proc).
Also, see documentation with the linux source: linux-2.6.32.44/Documentation/. Different entries in /proc have documentation files in this subdirectory