]> git.saurik.com Git - apple/xnu.git/blame - osfmk/man/i386_get_ldt.html
xnu-1504.15.3.tar.gz
[apple/xnu.git] / osfmk / man / i386_get_ldt.html
CommitLineData
13fec989
A
1<h2>i386_get_ldt</h2>
2<hr>
3<p>
4<strong>Function</strong> - Return per-thread segment descriptors.
5<h3>SYNOPSIS</h3>
6<pre>
7<strong>kern_return_t i386_get_ldt</strong>
8 <strong>(thread_act_t</strong> <var>target_act</var>,
9 <strong>int</strong> <var>first_selector</var>,
10 <strong>int</strong> <var>desired_count</var>,
11 <strong>descriptor_list_t</strong> <var>desc_list</var><strong>);</strong>
12</pre>
13<h3>PARAMETERS</h3>
14<dl>
15<p>
16<dt> <var>target_act</var>
17<dd>
18[in thread send right]
19Thread whose segment descriptors are to be
20returned.
21<p>
22<dt> <var>first_selector</var>
23<dd>
24[in scalar] Selector value (segment register value) corresponding to the
25first segment whose descriptor is to be returned.
26<p>
27<dt> <var>desired_count</var>
28<dd>
29[in scalar]
30Number of returned descriptors desired.
31<p>
32<dt> <var>desc_list</var>
33<dd>
34[out pointer to dynamic array of <strong>descriptor_t</strong>]
35Array of segment
36descriptors.
37</dl>
38<h3>DESCRIPTION</h3>
39<p>
40The <strong>i386_get_ldt</strong> function returns per-thread segment
41descriptors from the
42thread's local descriptor table (LDT).
43<h3>RETURN VALUES</h3>
44<p>
45Only generic errors apply.
46<h3>RELATED INFORMATION</h3>
47<p>
48Functions:
49<a href="i386_set_ldt.html"><strong>i386_set_ldt<strong></a>.