TASKCTL(3P)TASKCTL(3P)NAMEtaskctl - operations on a task
C SYNOPSIS
#include <sys/types.h>
#include <task.h>
int taskctl (tid_t tid, unsigned option);
DESCRIPTIONtaskctl provides both information about tasks and the ability to control
certain attributes of a task. option specifies one of the following:
TSK_ISBLOCKED
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.
SEE ALSOprctl(2), taskcreate(3P), taskdestroy(3P).
DIAGNOSTICS
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.
Page 1