mirror of https://github.com/mkerrisk/man-pages
ioprio_set.2: Use syscall(SYS_...); for system calls without a wrapper
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
2f8cb589fb
commit
0d961e8818
|
@ -26,12 +26,18 @@
|
|||
ioprio_get, ioprio_set \- get/set I/O scheduling class and priority
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.BI "int ioprio_get(int " which ", int " who );
|
||||
.BI "int ioprio_set(int " which ", int " who ", int " ioprio );
|
||||
.BR "#include <linux/ioprio.h> " "/* Definition of " IOPRIO_* " constants */"
|
||||
.BR "#include <sys/syscall.h> " "/* Definition of " SYS_* " constants */"
|
||||
.B #include <unistd.h>
|
||||
.PP
|
||||
.BI "int syscall(SYS_ioprio_get, int " which ", int " who );
|
||||
.BI "int syscall(SYS_ioprio_set, int " which ", int " who ", int " ioprio );
|
||||
.fi
|
||||
.PP
|
||||
.IR Note :
|
||||
There are no glibc wrappers for these system calls; see NOTES.
|
||||
glibc provides no wrappers for these system calls,
|
||||
necessitating the use of
|
||||
.BR syscall (2).
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
.BR ioprio_get ()
|
||||
|
@ -199,9 +205,6 @@ kernel 2.6.13.
|
|||
.SH CONFORMING TO
|
||||
These system calls are Linux-specific.
|
||||
.SH NOTES
|
||||
Glibc does not provide a wrapper for these system calls; call them using
|
||||
.BR syscall (2).
|
||||
.PP
|
||||
Two or more processes or threads can share an I/O context.
|
||||
This will be the case when
|
||||
.BR clone (2)
|
||||
|
|
Loading…
Reference in New Issue