Manual Pages for Linux CentOS command on man modify_ldt
MyWebUniversity

Manual Pages for Linux CentOS command on man modify_ldt

MODIFYLDT(2) Linux Programmer's Manual MODIFYLDT(2)

NAME

modifyldt - get or set ldt SYNOPSIS

#include int modifyldt(int func, void *ptr, unsigned long bytecount); Note: There is no glibc wrapper for this system call; see NOTES. DESCRIPTION modifyldt() reads or writes the local descriptor table (ldt) for a

process. The ldt is a per-process memory management table used by the i386 processor. For more information on this table, see an Intel 386 processor handbook. When func is 0, modifyldt() reads the ldt into the memory pointed to by ptr. The number of bytes read is the smaller of bytecount and the actual size of the ldt. When func is 1, modifyldt() modifies one ldt entry. ptr points to a userdesc structure and bytecount must equal the size of this strucā€ ture. The userdesc structure is defined in as: struct userdesc { unsigned int entrynumber; unsigned long baseaddr; unsigned int limit; unsigned int seg32bit:1; unsigned int contents:2; unsigned int readexeconly:1; unsigned int limitinpages:1; unsigned int segnotpresent:1; unsigned int useable:1; }; In Linux 2.4 and earlier, this structure was named modifyldtldts. RETURN VALUE On success, modifyldt() returns either the actual number of bytes read

(for reading) or 0 (for writing). On failure, modifyldt() returns -1 and sets errno to indicate the error. ERRORS EFAULT ptr points outside the address space. EINVAL ptr is 0, or func is 1 and bytecount is not equal to the size of the structure modifyldtldts, or func is 1 and the new ldt entry has invalid values. ENOSYS func is neither 0 nor 1. CONFORMING TO

This call is Linux-specific and should not be used in programs intended to be portable. NOTES Glibc does not provide a wrapper for this system call; call it using syscall(2). SEE ALSO vm86(2) COLOPHON

This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can

be found at http://www.kernel.org/doc/man-pages/.

Linux 2012-07-13 MODIFYLDT(2)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™