Back to Darwin Xnu

Task Terminate

osfmk/man/task_terminate.html

latest778 B
Original Source

task_terminate


Function - Terminate the target task and deallocate its resources.

SYNOPSIS

**kern\_return\_t task\_terminate**** (task\_t **task** );**

PARAMETERS

task[in task send right] The port for the task to be destroyed.

DESCRIPTION

The task_terminate function kills task and all its threads, if any. The kernel frees all resources that are in use by the task. The kernel destroys any port for which the task holds the receive right.

RETURN VALUES

Only generic errors apply.

Functions: task_create, task_suspend, task_resume, thread_terminate, thread_suspend.