1 <h2>task_get_emulation_vector
</h2>
4 <strong>Function
</strong> - Return an array identifying the target task's user-level system call handlers.
7 <strong>kern_return_t task_get_emulation_vector
</strong>
8 <strong>(task_t
</strong> <var>task
</var>,
9 <strong>int
</strong> <var>vector_start
</var>,
10 <strong>emulation_vector_t
</strong> <var>emulation_vector
</var>,
11 <strong>mach_msg_type_number_t*
</strong> <var>emulation_vector_count
</var><strong>);
</strong>
19 The port for the task for which the system call
20 handler addresses are desired.
22 <dt> <var>vector_start
</var>
25 The syscall number corresponding to the first element of
26 <var>emulation_vector
</var>.
28 <dt> <var>emulation_vector
</var>
30 [out pointer to dynamic array of
<strong>vm_address_t
</strong>]
31 Pointer to the returned
32 array of routine entrypoints for the system calls starting with syscall
33 number
<var>vector_start
</var>.
35 <dt> <var>emulation_vector_count
</var>
38 The number of entries filled by the kernel.
42 The
<strong>task_get_emulation_vector
</strong> function returns the
43 user-level syscall handler entrypoint addresses.
46 This interface is machine word length specific because of the
47 virtual addresses in the
<var>emulation_vector
</var> parameter.
48 <h3>RETURN VALUES
</h3>
50 Only generic errors apply.
51 <h3>RELATED INFORMATION
</h3>
54 <a href=
"task_set_emulation_vector.html"><strong>task_set_emulation_vector
</strong></a>.