]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/man/semaphore_destroy.html
xnu-792.6.76.tar.gz
[apple/xnu.git] / osfmk / man / semaphore_destroy.html
index 42202ec536ac7d032df07c36ce3157af379f5e3b..9a2505d95b99e11ed942bc21b2948bd120da875b 100755 (executable)
@@ -1 +1,58 @@
-<h2>semaphore_destroy</h2>\r<hr>\r<p>\r<strong>Function</strong> - Destroy a semaphore.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>kern_return_t   semaphore_destroy</strong>\r                <strong>(task_t</strong>                                    <var>task</var>,\r                 <strong>semaphore_t</strong>                          <var>semaphore</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<p>\r<dt> <var>task</var>\r<dd>\r[in task port] The task associated with the target semaphore.\r<p>\r<dt> <var>semaphore</var>\r<dd>\r[in send right] The port naming the semaphore to be destroyed.\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>semaphore_destroy</strong> function destroys a semaphore.\rAll send rights\rnaming the semaphore become dead names. Threads waiting on the\rsemaphore become unblocked with the return from the\r<strong>semaphore_wait</strong>\rcall indicating that the semaphore was destroyed. A call to\r<strong>semaphore_destroy</strong> succeeds only if the semaphore is associated\rwith the specified task.\r<h3>RETURN VALUES</h3>\r<dl>\r<p>\r<dt> <strong>KERN_INVALID_ARGUMENT</strong>\r<dd>\rEither, or both, the task or semaphore arguments were invalid.\r<p>\r<dt> <strong>KERN_INVALID_RIGHT</strong>\r<dd>\rThe specified task does not own the specified semaphore.\r<p>\r<dt> <strong>KERN_TERMINATED</strong>\r<dd>\rThe specified semaphore was previously destroyed.\r<p>\r<dt> <strong>KERN_SUCCESS</strong>\r<dd>\rThe semaphore was destroyed.\r</dl>\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="semaphore_create.html"><strong>semaphore_create</strong></a>,\r<a href="semaphore_signal.html"><strong>semaphore_signal</strong></a>,\r<a href="semaphore_signal_all.html"><strong>semaphore_signal_all</strong></a>,\r<a href="semaphore_wait.html"><strong>semaphore_wait</strong></a>,\r<a href="device_get_status.html"><strong>device_get_status</strong></a>.\r
\ No newline at end of file
+<h2>semaphore_destroy</h2>
+<hr>
+<p>
+<strong>Function</strong> - Destroy a semaphore.
+<h3>SYNOPSIS</h3>
+<pre>
+<strong>kern_return_t   semaphore_destroy</strong>
+                <strong>(task_t</strong>                                    <var>task</var>,
+                 <strong>semaphore_t</strong>                          <var>semaphore</var><strong>);</strong>
+</pre>
+<h3>PARAMETERS</h3>
+<dl>
+<p>
+<dt> <var>task</var>
+<dd>
+[in task port] The task associated with the target semaphore.
+<p>
+<dt> <var>semaphore</var>
+<dd>
+[in send right] The port naming the semaphore to be destroyed.
+</dl>
+<h3>DESCRIPTION</h3>
+<p>
+The <strong>semaphore_destroy</strong> function destroys a semaphore.
+All send rights
+naming the semaphore become dead names. Threads waiting on the
+semaphore become unblocked with the return from the
+<strong>semaphore_wait</strong>
+call indicating that the semaphore was destroyed. A call to
+<strong>semaphore_destroy</strong> succeeds only if the semaphore is associated
+with the specified task.
+<h3>RETURN VALUES</h3>
+<dl>
+<p>
+<dt> <strong>KERN_INVALID_ARGUMENT</strong>
+<dd>
+Either, or both, the task or semaphore arguments were invalid.
+<p>
+<dt> <strong>KERN_INVALID_RIGHT</strong>
+<dd>
+The specified task does not own the specified semaphore.
+<p>
+<dt> <strong>KERN_TERMINATED</strong>
+<dd>
+The specified semaphore was previously destroyed.
+<p>
+<dt> <strong>KERN_SUCCESS</strong>
+<dd>
+The semaphore was destroyed.
+</dl>
+<h3>RELATED INFORMATION</h3>
+<p>
+Functions:
+<a href="semaphore_create.html"><strong>semaphore_create</strong></a>,
+<a href="semaphore_signal.html"><strong>semaphore_signal</strong></a>,
+<a href="semaphore_signal_all.html"><strong>semaphore_signal_all</strong></a>,
+<a href="semaphore_wait.html"><strong>semaphore_wait</strong></a>,
+<a href="device_get_status.html"><strong>device_get_status</strong></a>.