Back to Darwin Xnu

Task Set Info

osfmk/man/task_set_info.html

latest923 B
Original Source

task_set_info


Function - Set task-specific information state.

SYNOPSIS

**#include&lttask\_info.h&gt**** kern\_return\_t task\_set\_info****(task\_t**target\_task, **task\_flavor\_t** flavor, **task\_info\_t** task\_info**);**

PARAMETERS

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.

DESCRIPTION

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.

NOTES

Currently, this interface is used exclusively to provide freshly colocated user tasks with the short-circuited RPC glue vector.

RETURN VALUES

Only generic values apply.