mirror of https://github.com/mkerrisk/man-pages
s390_pci_mmio_write.2: Use syscall(SYS_...); for system calls without a wrapper; fix includes too
This function doesn't use any flags or special types, so there's no reason to include <asm/unistd.h>; remove it. Add the includes needed for syscall(2) only. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
56cfe81cfb
commit
f908665187
|
@ -28,16 +28,19 @@ s390_pci_mmio_write, s390_pci_mmio_read \- transfer data to/from PCI
|
||||||
MMIO memory page
|
MMIO memory page
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.B #include <asm/unistd.h>
|
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
|
||||||
|
.B #include <unistd.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "int s390_pci_mmio_write(unsigned long " mmio_addr ,
|
.BI "int syscall(SYS_s390_pci_mmio_write, unsigned long " mmio_addr ,
|
||||||
.BI " const void *" user_buffer ", size_t " length );
|
.BI " const void *" user_buffer ", size_t " length );
|
||||||
.BI "int s390_pci_mmio_read(unsigned long " mmio_addr ,
|
.BI "int syscall(SYS_s390_pci_mmio_read, unsigned long " mmio_addr ,
|
||||||
.BI " void *" user_buffer ", size_t " length );
|
.BI " void *" user_buffer ", size_t " length );
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
.IR Note :
|
.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
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
.BR s390_pci_mmio_write ()
|
.BR s390_pci_mmio_write ()
|
||||||
|
@ -102,8 +105,5 @@ These system calls are available since Linux 3.19.
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
This Linux-specific system call is available only on the s390 architecture.
|
This Linux-specific system call is available only on the s390 architecture.
|
||||||
The required PCI support is available beginning with System z EC12.
|
The required PCI support is available beginning with System z EC12.
|
||||||
.SH NOTES
|
|
||||||
Glibc does not provide wrappers for these system calls; call them using
|
|
||||||
.BR syscall (2)
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR syscall (2)
|
.BR syscall (2)
|
||||||
|
|
Loading…
Reference in New Issue