Task Related Information

Outputting detailed information on system processes was one of the prime tasks for which the proc filesystem was originally designed, and this still holds true today. As demonstrated in Section 10.1.7, proc_pid_lookup is responsible for opening PID-specific files in /proc/<pid>. The associated code flow diagram is shown in Figure 10-4.

proc_pid_lookup name == self?

Create self incode name_to_intI

find_task_by_pid_ns proc_pid_instantiate proc_pid_make_inode

Fill in file and inode operations

Continue reading here: The self directory

Was this article helpful?

0 0