Back to Darwin Xnu

Task Get Emulation Vector

osfmk/man/task_get_emulation_vector.html

latest1.2 KB
Original Source

task_get_emulation_vector


Function - Return an array identifying the target task's user-level system call handlers.

SYNOPSIS

**kern\_return\_t task\_get\_emulation\_vector**** (task\_t **task,** int **vector\_start,** emulation\_vector\_t **emulation\_vector,** mach\_msg\_type\_number\_t\ ***emulation\_vector\_count** );**

PARAMETERS

task[in task send right] The port for the task for which the system call handler addresses are desired.

vector_start[out scalar] The syscall number corresponding to the first element of emulation_vector.

emulation_vector[out pointer to dynamic array of vm_address_t] Pointer to the returned array of routine entrypoints for the system calls starting with syscall number vector_start.

emulation_vector_count[out scalar] The number of entries filled by the kernel.

DESCRIPTION

The task_get_emulation_vector function returns the user-level syscall handler entrypoint addresses.

NOTES

This interface is machine word length specific because of the virtual addresses in the emulation_vector parameter.

RETURN VALUES

Only generic errors apply.

Functions: task_set_emulation_vector.