class TaskEnumerator
Defined at line 51 of file ../../zircon/system/ulib/task-utils/include/task-utils/walker.h
Interface for walking a job tree.
Public Methods
zx_status_t OnJob (int depth, zx_handle_t job, zx_koid_t koid, zx_koid_t parent_koid)
Each of these methods visits the corresponding task type. If any On*()
method returns a value other than ZX_OK, the enumeration stops. See
|task_callback_t| for a description of parameters.
Defined at line 56 of file ../../zircon/system/ulib/task-utils/include/task-utils/walker.h
zx_status_t OnProcess (int depth, zx_handle_t process, zx_koid_t koid, zx_koid_t parent_koid)
Defined at line 59 of file ../../zircon/system/ulib/task-utils/include/task-utils/walker.h
zx_status_t OnThread (int depth, zx_handle_t thread, zx_koid_t koid, zx_koid_t parent_koid)
Defined at line 63 of file ../../zircon/system/ulib/task-utils/include/task-utils/walker.h
zx_status_t WalkJobTree (zx_handle_t root_job)
Walks the job/process/task tree rooted in root_job. Visits tasks in
depth-first pre order.
Defined at line 363 of file ../../zircon/system/ulib/task-utils/walker.cc
zx_status_t WalkRootJobTree ()
Calls WalkJobTree() on the system's root job. Will fail if the calling
process does not have the rights to access the root job.
TODO(dbort): Add a different lib/API to get the system root job and
remove this function.
Defined at line 369 of file ../../zircon/system/ulib/task-utils/walker.cc
Protected Methods
void TaskEnumerator ()
Defined at line 79 of file ../../zircon/system/ulib/task-utils/include/task-utils/walker.h
void ~TaskEnumerator ()
Defined at line 80 of file ../../zircon/system/ulib/task-utils/include/task-utils/walker.h
bool has_on_job ()
Subclasses must overload these to indicate which task types to actually
visit. Avoids, e.g., visiting every thread in the system when a caller
only cares about jobs.
Defined at line 85 of file ../../zircon/system/ulib/task-utils/include/task-utils/walker.h
bool has_on_process ()
Defined at line 86 of file ../../zircon/system/ulib/task-utils/include/task-utils/walker.h
bool has_on_thread ()
Defined at line 87 of file ../../zircon/system/ulib/task-utils/include/task-utils/walker.h