NAME
task_threads - gets thread_kernel_ports for a task
SYNOPSIS
#include <mach.h>
kern_return_t
task_threads(target_task, thread_list, thread_count)
task_t target_task;
thread_array_t *thread_list; /* out, ptr to array */
int *thread_count; /* out */
ARGUMENTS
target_task The task to be affected.
thread_list The set of threads
contained within target_task; no
particular ordering is guaranteed.
thread_count The number of threads in the thread_list.
DESCRIPTION
task_threads gets send rights to the kernel port for each
thread
contained in target_task. thread_list is an array that is
created
as a result of this call. The caller may wish to
vm_deallocate this
array when the data is no longer needed.
DIAGNOSTICS
KERN_SUCCESS The call succeeded.
KERN_INVALID_ARGUMENT target_task is not a task.
SEE ALSO
thread_create(2), thread_terminate(2), thread_suspend(2)