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