.\" <http://www.gnu.org/licenses/>.
.\" %%%LICENSE_END
.\"
-.TH MODIFY_LDT 2 2016-10-08 "Linux" "Linux Programmer's Manual"
+.TH MODIFY_LDT 2 2017-09-15 "Linux" "Linux Programmer's Manual"
.SH NAME
modify_ldt \- get or set a per-process LDT entry
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
-.sp
+.PP
.BI "int modify_ldt(int " func ", void *" ptr ", unsigned long " bytecount );
.fi
.PP
and
.I bytecount
must equal the size of this structure.
-
+.PP
The
.I user_desc
structure is defined in \fI<asm/ldt.h>\fP as:
+.PP
.in +4n
-.nf
-
+.EX
struct user_desc {
unsigned int entry_number;
unsigned long base_addr;
unsigned int seg_not_present:1;
unsigned int useable:1;
};
-.fi
+.EE
.in
.PP
In Linux 2.4 and earlier, this structure was named