Back to Darwin Xnu

Processor Set Threads

osfmk/man/processor_set_threads.html

latest1.0 KB
Original Source

processor_set_threads


Function - Return a list of pointers to all threads currently assigned to the target processor set.

SYNOPSIS

**kern\_return\_t processor\_set\_threads**** (processor\_set\_t **processor\_set,** thread\_port\_array\_t **thread\_list,** mach\_msg\_type\_number\_t\ ***thread\_count** );**

PARAMETERS

processor_set[in processor-set-control send right] A processor set control port for which information is desired. thread_list[out pointer to dynamic array of thread send rights] The returned set of ports naming the threads currently assigned to processor_set. thread_count[out scalar] The number of threads returned in thread_list.

DESCRIPTION

The processor_set_threads function returns send rights to the kernel ports for each thread currently assigned to processor_set.

RETURN VALUES

Only generic errors apply.

Functions: processor_set_tasks, task_assign, thread_assign.