mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
mdoc(7) police: "The .Fn system call".
This commit is contained in:
parent
894fd2da78
commit
a0ce78ec1d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108035
@ -40,7 +40,9 @@
|
|||||||
.Ft int
|
.Ft int
|
||||||
.Fn i386_set_ioperm "unsigned int start" "unsigned int length" "int enable"
|
.Fn i386_set_ioperm "unsigned int start" "unsigned int length" "int enable"
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
|
The
|
||||||
.Fn i386_get_ioperm
|
.Fn i386_get_ioperm
|
||||||
|
system call
|
||||||
will return the permission for the process' I/O port space in the
|
will return the permission for the process' I/O port space in the
|
||||||
.Fa *enable
|
.Fa *enable
|
||||||
argument. The port range starts at
|
argument. The port range starts at
|
||||||
@ -48,7 +50,9 @@ argument. The port range starts at
|
|||||||
and the number of contiguous entries will be returned in
|
and the number of contiguous entries will be returned in
|
||||||
.Fa *length .
|
.Fa *length .
|
||||||
.Pp
|
.Pp
|
||||||
|
The
|
||||||
.Fn i386_set_ioperm
|
.Fn i386_set_ioperm
|
||||||
|
system call
|
||||||
will set access to a range of I/O ports described by the
|
will set access to a range of I/O ports described by the
|
||||||
.Fa start
|
.Fa start
|
||||||
and
|
and
|
||||||
@ -59,9 +63,11 @@ argument.
|
|||||||
.Sh RETURN VALUES
|
.Sh RETURN VALUES
|
||||||
.Rv -std
|
.Rv -std
|
||||||
.Sh ERRORS
|
.Sh ERRORS
|
||||||
|
The
|
||||||
.Fn i386_get_ioperm
|
.Fn i386_get_ioperm
|
||||||
and
|
and
|
||||||
.Fn i386_set_ioperm
|
.Fn i386_set_ioperm
|
||||||
|
system calls
|
||||||
will fail if:
|
will fail if:
|
||||||
.Bl -tag -width Er
|
.Bl -tag -width Er
|
||||||
.It Bq Er EINVAL
|
.It Bq Er EINVAL
|
||||||
|
@ -49,10 +49,14 @@
|
|||||||
.Ft int
|
.Ft int
|
||||||
.Fn i386_set_ldt "int start_sel" "union descriptor *descs" "int num_sels"
|
.Fn i386_set_ldt "int start_sel" "union descriptor *descs" "int num_sels"
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
|
The
|
||||||
.Fn i386_get_ldt
|
.Fn i386_get_ldt
|
||||||
|
system call
|
||||||
will return the list of i386 descriptors that the process has in its
|
will return the list of i386 descriptors that the process has in its
|
||||||
LDT.
|
LDT.
|
||||||
|
The
|
||||||
.Fn i386_set_ldt
|
.Fn i386_set_ldt
|
||||||
|
system call
|
||||||
will set a list of i386 descriptors for the current process in its
|
will set a list of i386 descriptors for the current process in its
|
||||||
LDT.
|
LDT.
|
||||||
Both routines accept a starting selector number
|
Both routines accept a starting selector number
|
||||||
@ -77,16 +81,20 @@ in your kernel configuration file to use these functions.
|
|||||||
Upon successful completion,
|
Upon successful completion,
|
||||||
.Fn i386_get_ldt
|
.Fn i386_get_ldt
|
||||||
returns the number of descriptors currently in the LDT.
|
returns the number of descriptors currently in the LDT.
|
||||||
|
The
|
||||||
.Fn i386_set_ldt
|
.Fn i386_set_ldt
|
||||||
|
system call
|
||||||
returns the first selector set.
|
returns the first selector set.
|
||||||
Otherwise, a value of -1 is returned and the global
|
Otherwise, a value of -1 is returned and the global
|
||||||
variable
|
variable
|
||||||
.Va errno
|
.Va errno
|
||||||
is set to indicate the error.
|
is set to indicate the error.
|
||||||
.Sh ERRORS
|
.Sh ERRORS
|
||||||
|
The
|
||||||
.Fn i386_get_ldt
|
.Fn i386_get_ldt
|
||||||
and
|
and
|
||||||
.Fn i386_set_ldt
|
.Fn i386_set_ldt
|
||||||
|
system calls
|
||||||
will fail if:
|
will fail if:
|
||||||
.Bl -tag -width Er
|
.Bl -tag -width Er
|
||||||
.It Bq Er EINVAL
|
.It Bq Er EINVAL
|
||||||
|
@ -39,7 +39,9 @@
|
|||||||
.Ft int
|
.Ft int
|
||||||
.Fn i386_vm86 "int function" "void *data"
|
.Fn i386_vm86 "int function" "void *data"
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
|
The
|
||||||
.Fn i386_vm86
|
.Fn i386_vm86
|
||||||
|
system call
|
||||||
is used to call various vm86 related functions.
|
is used to call various vm86 related functions.
|
||||||
.Fa function
|
.Fa function
|
||||||
can be one of the following values:
|
can be one of the following values:
|
||||||
@ -80,7 +82,9 @@ bit set. Control returns to the process upon delivery of a signal.
|
|||||||
.Sh RETURN VALUES
|
.Sh RETURN VALUES
|
||||||
.Rv -std i386_vm86
|
.Rv -std i386_vm86
|
||||||
.Sh ERRORS
|
.Sh ERRORS
|
||||||
|
The
|
||||||
.Fn i386_vm86
|
.Fn i386_vm86
|
||||||
|
system call
|
||||||
will fail if:
|
will fail if:
|
||||||
.Bl -tag -width Er
|
.Bl -tag -width Er
|
||||||
.It Bq Er EINVAL
|
.It Bq Er EINVAL
|
||||||
|
Loading…
Reference in New Issue
Block a user