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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (c) 1995 Michael Chastain (mec@duracef.shout.net), 22 July 1995.
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" Translated into Spanish on 1998 08 January by
.\" Gerardo Aburruzaga Garca <gerardo.aburruzaga@uca.es>
.\"
.TH MODIFY_LDT 2 "08 Enero 1998" "Linux" "Manual del Programador Linux"
.SH NOMBRE
modify_ldt \- obtiene o pone ldt
.SH SINOPSIS
.nf
.B #include <linux/ldt.h>
.B #include <linux/unistd.h>
.sp
.B _syscall3( int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount )
.sp
.BI "int modify_ldt(int " "func" ", void *" "ptr" ", unsigned long " "bytecount" ");"
.fi
.SH DESCRIPCIN
.B modify_ldt
lee o escribe la tabla local de descriptores (ldt) para un proceso.
La ldt es una tabla de gestin de memoria por proceso empleada por el
procesador i386. Para ms informacin sobre esta tabla, consulte un
manual del procesador 386 de Intel.
.PP
Cuando
.I func
es 0,
.B modify_ldt
lee la ldt de la zona de memoria apuntada por
.IR ptr .
El nmero de bytes ledos es el menor de
.I bytecount
y el tamao actual de la ldt.
.PP
Cuando
.I func
es 1,
.B modify_ldt
modifica una entrada de ldt.
.I ptr
apunta a una estructura
.I modify_ldt_ldt_s
y
.I bytecount
debe igualar el tamao de esta estructura.
.SH "VALOR DE RETORNO"
En caso de xito,
.B modify_ldt
devuelve o el nmero real de bytes ledos (cuando lee)
0 (cuando escribe).
Si falla,
.B modify_ldt
devuelve \-1 y da un valor apropiado a
.IR errno .
.SH ERRORES
.TP
.B ENOSYS
.I func
no es ni 0 ni 1.
.TP
.B EINVAL
.I ptr
es 0,
o
.I func
es 1 y
.I bytecount
no es igual al tamao de la estructura
.IR modify_ldt_ldt_s ,
o
.I func
es 1 y la nueva entrada de ldt tiene valores no vlidos.
.TP
.B EFAULT
.I ptr
apunta afuera del espacio de direcciones.
.SH "CONFORME CON"
Esta llamada es especfica de Linux y no debera emplearse en
programas que pretendan ser transportables.
.SH "VASE TAMBIN"
.BR vm86 (2)
\" LocalWords: ldt Intel func modify ptr bytecount errno ENOSYS EINVAL
|