osfmk/man/i386_get_ldt.html
Function - Return per-thread segment descriptors.
**kern\_return\_t i386\_get\_ldt**** (thread\_act\_t **target\_act,** int **first\_selector,** int **desired\_count,** descriptor\_list\_t **desc\_list** );**
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.
The i386_get_ldt function returns per-thread segment descriptors from the thread's local descriptor table (LDT).
Only generic errors apply.
Functions: i386_set_ldt.