1*e13b1fa5SApple OSS Distributions<h2>task_terminate</h2> 2*e13b1fa5SApple OSS Distributions<hr> 3*e13b1fa5SApple OSS Distributions<p> 4*e13b1fa5SApple OSS Distributions<strong>Function</strong> - Terminate the target task and deallocate its resources. 5*e13b1fa5SApple OSS Distributions<h3>SYNOPSIS</h3> 6*e13b1fa5SApple OSS Distributions<pre> 7*e13b1fa5SApple OSS Distributions<strong>kern_return_t task_terminate</strong> 8*e13b1fa5SApple OSS Distributions <strong>(task_t</strong> <var>task</var><strong>);</strong> 9*e13b1fa5SApple OSS Distributions</pre> 10*e13b1fa5SApple OSS Distributions<h3>PARAMETERS</h3> 11*e13b1fa5SApple OSS Distributions<dl> 12*e13b1fa5SApple OSS Distributions<p> 13*e13b1fa5SApple OSS Distributions<dt> <var>task</var> 14*e13b1fa5SApple OSS Distributions<dd> 15*e13b1fa5SApple OSS Distributions[in task send right] 16*e13b1fa5SApple OSS DistributionsThe port for the task to be destroyed. 17*e13b1fa5SApple OSS Distributions</dl> 18*e13b1fa5SApple OSS Distributions<h3>DESCRIPTION</h3> 19*e13b1fa5SApple OSS Distributions<p> 20*e13b1fa5SApple OSS DistributionsThe <strong>task_terminate</strong> function kills task and all its 21*e13b1fa5SApple OSS Distributionsthreads, if any. The kernel 22*e13b1fa5SApple OSS Distributionsfrees all resources that are in use by the task. The kernel 23*e13b1fa5SApple OSS Distributionsdestroys any port for 24*e13b1fa5SApple OSS Distributionswhich the task holds the receive right. 25*e13b1fa5SApple OSS Distributions<h3>RETURN VALUES</h3> 26*e13b1fa5SApple OSS Distributions<p> 27*e13b1fa5SApple OSS DistributionsOnly generic errors apply. 28*e13b1fa5SApple OSS Distributions<h3>RELATED INFORMATION</h3> 29*e13b1fa5SApple OSS Distributions<p> 30*e13b1fa5SApple OSS DistributionsFunctions: 31*e13b1fa5SApple OSS Distributions<a href="task_create.html"><strong>task_create</strong></a>, 32*e13b1fa5SApple OSS Distributions<a href="task_suspend.html"><strong>task_suspend</strong></a>, 33*e13b1fa5SApple OSS Distributions<a href="task_resume.html"><strong>task_resume</strong></a>, 34*e13b1fa5SApple OSS Distributions<a href="thread_terminate.html"><strong>thread_terminate</strong></a>, 35*e13b1fa5SApple OSS Distributions<a href="thread_suspend.html"><strong>thread_suspend</strong></a>. 36