Files, Processes, and Threads Walkers
- file
-
Given the address of a
proc_tstructure as a starting point, iterate over the set of open files (file_tstructures) associated with the specified process. Thefile_tstructure is defined in<sys/file.h>. - proc
-
Iterate over the active process (
proc_t) structures. This structure is defined in<sys/proc.h>. - task
-
Given a task pointer, iterate over the list of
proc_tstructures for processes that are members of the given task. - thread
-
Iterate over a set of kernel thread (
kthread_t) structures. If the global walk is invoked, all kernel threads are returned by the walker. If a local walk is invoked using aproc_taddress as the starting point, the set of threads associated with the specified process is returned. Thekthread_tstructure is defined in<sys/thread.h>.