Back to Darwin Xnu

I386 Get Ldt

osfmk/man/i386_get_ldt.html

latest929 B
Original Source

i386_get_ldt


Function - Return per-thread segment descriptors.

SYNOPSIS

**kern\_return\_t i386\_get\_ldt**** (thread\_act\_t **target\_act,** int **first\_selector,** int **desired\_count,** descriptor\_list\_t **desc\_list** );**

PARAMETERS

target_act[in thread send right] Thread whose segment descriptors are to be returned.

first_selector[in scalar] Selector value (segment register value) corresponding to the first segment whose descriptor is to be returned.

desired_count[in scalar] Number of returned descriptors desired.

desc_list[out pointer to dynamic array of descriptor_t] Array of segment descriptors.

DESCRIPTION

The i386_get_ldt function returns per-thread segment descriptors from the thread's local descriptor table (LDT).

RETURN VALUES

Only generic errors apply.

Functions: i386_set_ldt.