]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/man/thread_set_special_port.html
xnu-792.6.76.tar.gz
[apple/xnu.git] / osfmk / man / thread_set_special_port.html
index 5359a6faeac7464eb7b99861b640a76fe5762991..251d27536d32e7a31bfc0ae3155b3adb3b3899b6 100755 (executable)
@@ -1 +1,59 @@
-<h2>thread_set_special_port</h2>\r<hr>\r<p>\r<strong>Function</strong> - Set caller-specified special port belonging to the target thread.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>kern_return_t   thread_set_special_port</strong>\r                <strong>(thread_act_t</strong>                            <var>thread</var>,\r                 <strong>int</strong>                                 <var>which_port</var>,\r                 <strong>mach_port_t</strong>                       <var>special_port</var><strong>);</strong>\r</pre>\r\r<h4>Macro form:</h4>\r<pre>\r<strong>kern_return_t   thread_set_kernel_port</strong>\r                <strong>(thread_act_t</strong>                            <var>thread</var>,\r                 <strong>mach_port_t</strong>                       <var>special_port</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<p>\r<dt> <var>thread</var> \r<dd>\r[in thread send right]\rThe thread for which to set the port.\r<p>\r<dt> <var>which_port</var> \r<dd>\r[in scalar]\rThe special port to be set.  Valid values are:\r<dl>\r<p>\r<dt> <strong>THREAD_KERNEL_PORT</strong>\r<dd>\r[thread-self port] The thread's kernel port.  Used by the kernel \rto receive messages from the thread.  This is the port returned \rby <strong>mach_thread_self</strong>.\r</dl>\r<p>\r<dt> <var>special_port</var> \r<dd>\r[in thread-special send right]\rThe value for the port.\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>thread_set_special_port</strong> function sets a special\rport belonging to <var>thread</var>.\r<h3>RETURN VALUES</h3>\r<p>\rOnly generic errors apply.\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="mach_thread_self.html"><strong>mach_thread_self</strong></a>,\r<a href="task_get_special_port.html"><strong>task_get_special_port</strong></a>,\r<a href="task_set_special_port.html"><strong>task_set_special_port</strong></a>,\r<a href="thread_create.html"><strong>thread_create</strong></a>,\r<a href="thread_get_special_port.html"><strong>thread_get_special_port</strong></a>.\r
\ No newline at end of file
+<h2>thread_set_special_port</h2>
+<hr>
+<p>
+<strong>Function</strong> - Set caller-specified special port belonging to the target thread.
+<h3>SYNOPSIS</h3>
+<pre>
+<strong>kern_return_t   thread_set_special_port</strong>
+                <strong>(thread_act_t</strong>                            <var>thread</var>,
+                 <strong>int</strong>                                 <var>which_port</var>,
+                 <strong>mach_port_t</strong>                       <var>special_port</var><strong>);</strong>
+</pre>
+
+<h4>Macro form:</h4>
+<pre>
+<strong>kern_return_t   thread_set_kernel_port</strong>
+                <strong>(thread_act_t</strong>                            <var>thread</var>,
+                 <strong>mach_port_t</strong>                       <var>special_port</var><strong>);</strong>
+</pre>
+<h3>PARAMETERS</h3>
+<dl>
+<p>
+<dt> <var>thread</var> 
+<dd>
+[in thread send right]
+The thread for which to set the port.
+<p>
+<dt> <var>which_port</var> 
+<dd>
+[in scalar]
+The special port to be set.  Valid values are:
+<dl>
+<p>
+<dt> <strong>THREAD_KERNEL_PORT</strong>
+<dd>
+[thread-self port] The thread's kernel port.  Used by the kernel 
+to receive messages from the thread.  This is the port returned 
+by <strong>mach_thread_self</strong>.
+</dl>
+<p>
+<dt> <var>special_port</var> 
+<dd>
+[in thread-special send right]
+The value for the port.
+</dl>
+<h3>DESCRIPTION</h3>
+<p>
+The <strong>thread_set_special_port</strong> function sets a special
+port belonging to <var>thread</var>.
+<h3>RETURN VALUES</h3>
+<p>
+Only generic errors apply.
+<h3>RELATED INFORMATION</h3>
+<p>
+Functions:
+<a href="mach_thread_self.html"><strong>mach_thread_self</strong></a>,
+<a href="task_get_special_port.html"><strong>task_get_special_port</strong></a>,
+<a href="task_set_special_port.html"><strong>task_set_special_port</strong></a>,
+<a href="thread_create.html"><strong>thread_create</strong></a>,
+<a href="thread_get_special_port.html"><strong>thread_get_special_port</strong></a>.