Function - Set per-thread segment descriptors.
kern_return_t i386_set_ldt
(thread_act_t target_act,
int first_selector,
descriptor_list_t desc_list);
All other descriptors must have both the ACC_P flag set and specify user mode access (ACC_PL_U).
The i386_set_ldt function allows a thread to have a private local descriptor table (LDT) which allows its local segments to map various ranges of its address space.
Only generic errors apply.
Functions: i386_get_ldt.