Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
modify_ldt(2)
Edit
PageHistory
Diff
Info
LikePages
!!NAME modify_ldt - get or set ldt !!SYNOPSIS __#include <linux/ldt.h>__ __#include <linux/unistd>__ ___syscall(int __''modify_ldt''__, int __''func''__, void *__''ptr''__, unsigned long__'' bytecount''__ )__ __char *modify_ldt(int __ ''func''__, void *__''ptr''__, unsigned long__ ''bytecount''__);__ !!DESCRIPTION __modify_ldt__ 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, __modify_ldt__ 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, __modify_ldt__ modifies one ldt entry. ''ptr'' points to a ''modify_ldt_ldt_s'' structure and ''bytecount'' must equal the size of this structure. !!RETURN VALUE On success, __modify_ldt__ returns either the actual number of bytes read (for reading) or 0 (for writing). On failure, __modify_ldt__ returns -1 and sets ''errno''. !!ERRORS ;[ENOSYS]: ''func'' is neither 0 nor 1. ;[EINVAL]: ''ptr'' is 0, or ''func'' is 1 and ''bytecount'' is not equal to the size of the structure ''modify_ldt_ldt_s'', or ''func'' is 1 and the new ldt entry has illegal values. ;[EFAULT]: ''ptr'' points outside the address space. !!CONFORMING TO This call in Linux-specfic and should not be used in programs intended to be portable. !!SEE ALSO vm86(2) ----
2 pages link to
modify_ldt(2)
:
Man2m
syscalls(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.