xref: /xnu-10002.1.13/osfmk/man/mach_thread_self.html (revision 1031c584a5e37aff177559b9f69dbd3c8c3fd30a)
1*1031c584SApple OSS Distributions<h2>mach_thread_self</h2>
2*1031c584SApple OSS Distributions<hr>
3*1031c584SApple OSS Distributions<p>
4*1031c584SApple OSS Distributions<strong>System Trap</strong> - Returns the thread self port.
5*1031c584SApple OSS Distributions
6*1031c584SApple OSS Distributions<h3>SYNOPSIS</h3>
7*1031c584SApple OSS Distributions<p>
8*1031c584SApple OSS Distributions<strong>#include <mach/mach_traps.h></strong>
9*1031c584SApple OSS Distributions<pre>
10*1031c584SApple OSS Distributions<strong>thread_port_t   mach_thread_self( void );</strong>
11*1031c584SApple OSS Distributions</pre>
12*1031c584SApple OSS Distributions<h3>PARAMETERS</h3>
13*1031c584SApple OSS Distributions<p>
14*1031c584SApple OSS DistributionsNone.
15*1031c584SApple OSS Distributions<h3>DESCRIPTION</h3>
16*1031c584SApple OSS Distributions<p>
17*1031c584SApple OSS DistributionsThe <strong>mach_thread_self</strong> function returns send rights
18*1031c584SApple OSS Distributionsto the thread's own kernel port.
19*1031c584SApple OSS Distributions<h3>RETURN VALUES</h3>
20*1031c584SApple OSS Distributions<p>
21*1031c584SApple OSS Distributions[thread-self send right] Send rights to the thread's port.
22*1031c584SApple OSS Distributions<h3>RELATED INFORMATION<h3>
23*1031c584SApple OSS Distributions<p>
24*1031c584SApple OSS DistributionsFunctions:
25*1031c584SApple OSS Distributions<a href="thread_info.html"><strong>thread_info</strong></a>,
26*1031c584SApple OSS Distributions<a href="thread_set_special_port.html"><strong>thread_set_special_port</strong></a>.
27*1031c584SApple OSS Distributions
28