taskctl - operations on a task
int taskctl (tid_t tid, unsigned option);
taskctl provides both information about tasks and the ability to control
certain attributes of a task. option specifies one of the following:
TSK_ISBLOCKED [Toc] [Back]
returns 1 if the specified task is currently blocked. Since
other processes could have subsequently unblocked the task, the
result should be considered a snapshot only.
taskctl will fail if one or more of the following are true:
[EINVAL] option does not refer to a valid option.
[EINVAL] tid does not refer to a valid task.
prctl(2), taskcreate(3P), taskdestroy(3P).
Upon successful completion, taskctl returns a option specific value.
Otherwise, a value of -1 is returned to the calling task, and errno is
set to indicate the error.
PPPPaaaaggggeeee 1111 [ Back ]