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