xref: /xnu-8792.41.9/osfmk/man/task_get_emulation_vector.html (revision 5c2921b07a2480ab43ec66f5b9e41cb872bc554f)
1*5c2921b0SApple OSS Distributions<h2>task_get_emulation_vector</h2>
2*5c2921b0SApple OSS Distributions<hr>
3*5c2921b0SApple OSS Distributions<p>
4*5c2921b0SApple OSS Distributions<strong>Function</strong> - Return an array identifying the target task's user-level system call handlers.
5*5c2921b0SApple OSS Distributions<h3>SYNOPSIS</h3>
6*5c2921b0SApple OSS Distributions<pre>
7*5c2921b0SApple OSS Distributions<strong>kern_return_t   task_get_emulation_vector</strong>
8*5c2921b0SApple OSS Distributions                <strong>(task_t</strong>                                    <var>task</var>,
9*5c2921b0SApple OSS Distributions                 <strong>int</strong>                               <var>vector_start</var>,
10*5c2921b0SApple OSS Distributions                 <strong>emulation_vector_t</strong>            <var>emulation_vector</var>,
11*5c2921b0SApple OSS Distributions                 <strong>mach_msg_type_number_t*</strong> <var>emulation_vector_count</var><strong>);</strong>
12*5c2921b0SApple OSS Distributions</pre>
13*5c2921b0SApple OSS Distributions<h3>PARAMETERS</h3>
14*5c2921b0SApple OSS Distributions<dl>
15*5c2921b0SApple OSS Distributions<p>
16*5c2921b0SApple OSS Distributions<dt> <var>task</var>
17*5c2921b0SApple OSS Distributions<dd>
18*5c2921b0SApple OSS Distributions[in task send right]
19*5c2921b0SApple OSS DistributionsThe port for the task for which the system call
20*5c2921b0SApple OSS Distributionshandler addresses are desired.
21*5c2921b0SApple OSS Distributions<p>
22*5c2921b0SApple OSS Distributions<dt> <var>vector_start</var>
23*5c2921b0SApple OSS Distributions<dd>
24*5c2921b0SApple OSS Distributions[out scalar]
25*5c2921b0SApple OSS DistributionsThe syscall number corresponding to the first element of
26*5c2921b0SApple OSS Distributions<var>emulation_vector</var>.
27*5c2921b0SApple OSS Distributions<p>
28*5c2921b0SApple OSS Distributions<dt> <var>emulation_vector</var>
29*5c2921b0SApple OSS Distributions<dd>
30*5c2921b0SApple OSS Distributions[out pointer to dynamic array of <strong>vm_address_t</strong>]
31*5c2921b0SApple OSS DistributionsPointer to the returned
32*5c2921b0SApple OSS Distributionsarray of routine entrypoints for the system calls starting with syscall
33*5c2921b0SApple OSS Distributionsnumber <var>vector_start</var>.
34*5c2921b0SApple OSS Distributions<p>
35*5c2921b0SApple OSS Distributions<dt> <var>emulation_vector_count</var>
36*5c2921b0SApple OSS Distributions<dd>
37*5c2921b0SApple OSS Distributions[out scalar]
38*5c2921b0SApple OSS DistributionsThe number of entries filled by the kernel.
39*5c2921b0SApple OSS Distributions</dl>
40*5c2921b0SApple OSS Distributions<h3>DESCRIPTION</h3>
41*5c2921b0SApple OSS Distributions<p>
42*5c2921b0SApple OSS DistributionsThe <strong>task_get_emulation_vector</strong> function returns the
43*5c2921b0SApple OSS Distributionsuser-level syscall handler entrypoint addresses.
44*5c2921b0SApple OSS Distributions<h3>NOTES</h3>
45*5c2921b0SApple OSS Distributions<p>
46*5c2921b0SApple OSS DistributionsThis interface is machine word length specific because of the
47*5c2921b0SApple OSS Distributionsvirtual addresses in the <var>emulation_vector</var> parameter.
48*5c2921b0SApple OSS Distributions<h3>RETURN VALUES</h3>
49*5c2921b0SApple OSS Distributions<p>
50*5c2921b0SApple OSS DistributionsOnly generic errors apply.
51*5c2921b0SApple OSS Distributions<h3>RELATED INFORMATION</h3>
52*5c2921b0SApple OSS Distributions<p>
53*5c2921b0SApple OSS DistributionsFunctions:
54*5c2921b0SApple OSS Distributions<a href="task_set_emulation_vector.html"><strong>task_set_emulation_vector</strong></a>.
55