osfmk/man/task_set_info.html
Function - Set task-specific information state.
**#include<task\_info.h>**** kern\_return\_t task\_set\_info****(task\_t**target\_task, **task\_flavor\_t** flavor, **task\_info\_t** task\_info**);**
target_taskThe task whose information is to be set.
flavorSpecifies the type of information to be set. Currently the interface supports the setting of a single flavor: TASK_USER_DATA.
task_infoSpecifies the information to be set.
The task_set_info interface provides the caller with the means to set the target task's user_data field. This field may be used to specify arbitrarily task-specific data.
Currently, this interface is used exclusively to provide freshly colocated user tasks with the short-circuited RPC glue vector.
Only generic values apply.