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:
Alejandro Colomar 2021-05-15 20:20:24 +02:00 committed by Michael Kerrisk
parent 56cfe81cfb
commit f908665187
1 changed files with 7 additions and 7 deletions

View File

@ -28,16 +28,19 @@ s390_pci_mmio_write, s390_pci_mmio_read \- transfer data to/from PCI
MMIO memory page
.SH SYNOPSIS
.nf
.B #include <asm/unistd.h>
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
.B #include <unistd.h>
.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 "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 );
.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 s390_pci_mmio_write ()
@ -102,8 +105,5 @@ These system calls are available since Linux 3.19.
.SH CONFORMING TO
This Linux-specific system call is available only on the s390 architecture.
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
.BR syscall (2)