|
|||||||
|
|
MODIFY_LDTSection: Linux Programmer's Manual (2)Updated: 1995-07-22 Index Return to Main Contents NAMEmodify_ldt - get or set ldtSYNOPSIS#include <linux/ldt.h>#include <linux/unistd.h> _syscall3(int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount) int modify_ldt(int func, void *ptr, unsigned long bytecount); DESCRIPTIONmodify_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 VALUEOn 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
CONFORMING TOThis call in Linux-specific and should not be used in programs intended to be portable.SEE ALSOvm86(2)
Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man2". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |