Compare commits

...

7 Commits

Author SHA1 Message Date
Michael Kerrisk 2673a70a57 get_mempolicy.2, mq_getsetattr.2, poll.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2021-04-06 13:44:48 +02:00
Michael Kerrisk 92a4b09356 pipe.2: Rearrange SYNOPSIS so that minority version pipe() is at end
A few architectures have a different call signature for pipe().
Since those architectures are the minority, place the prototype
at the end of the SYNOPSIS, rather than the start.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2021-04-06 13:44:48 +02:00
Michael Kerrisk 3ab99460db mount.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2021-04-06 13:44:48 +02:00
Michael Kerrisk 9ae36f1824 userfaultfd.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2021-04-06 13:44:48 +02:00
Michael Kerrisk 1cf1ada55a ioctl_userfaultfd.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2021-04-06 13:44:48 +02:00
Michael Kerrisk 88b0e0e01d mount_namespaces.7, namespaces.7: Relocate reference to pam_namespace(8)
SEE ALSO: move pam_namespace(8) from namespaces(7) to
mount_namespaces(7) (since pam_namespace(8) makes use of
mount namespaces specifically).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2021-04-06 12:24:33 +02:00
Michael Kerrisk 241c425113 vsock.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2021-04-06 10:37:04 +02:00
10 changed files with 26 additions and 22 deletions

View File

@ -32,8 +32,8 @@ get_mempolicy \- retrieve NUMA memory policy for a thread
.nf
.PP
.BI "long get_mempolicy(int *" mode ", unsigned long *" nodemask ,
.BI " unsigned long " maxnode ", void *" addr ,
.BI " unsigned long " flags );
.BI " unsigned long " maxnode ", void *" addr ,
.BI " unsigned long " flags );
.PP
Link with \fI\-lnuma\fP.
.fi

View File

@ -686,13 +686,13 @@ struct uffdio_writeprotect {
.EE
.in
.PP
There're two mode bits that are supported in this structure:
There are two mode bits that are supported in this structure:
.TP
.B UFFDIO_WRITEPROTECT_MODE_WP
When this mode bit is set,
the ioctl will be a write-protect operation upon the memory range specified by
.IR range .
Otherwise it'll be a write-unprotect operation upon the specified range,
Otherwise it will be a write-unprotect operation upon the specified range,
which can be used to resolve a userfaultfd write-protect page fault.
.TP
.B UFFDIO_WRITEPROTECT_MODE_DONTWAKE

View File

@ -151,7 +151,7 @@ Reduce on-disk updates of inode timestamps (atime, mtime, ctime)
by maintaining these changes only in memory.
The on-disk timestamps are updated only when:
.RS
.IP (a) 5
.IP (a) 4
the inode needs to be updated for some change unrelated to file timestamps;
.IP (b)
the application employs

View File

@ -30,7 +30,7 @@ mq_getsetattr \- get/set message queue attributes
.B #include <mqueue.h>
.PP
.BI "int mq_getsetattr(mqd_t " mqdes ", const struct mq_attr *" newattr ,
.BI " struct mq_attr *" oldattr );
.BI " struct mq_attr *" oldattr );
.fi
.PP
.IR Note :

View File

@ -40,13 +40,6 @@ pipe, pipe2 \- create pipe
.nf
.B #include <unistd.h>
.PP
/* On Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64; see NOTES */
.B struct fd_pair {
.B " long fd[2];"
.B "};"
.B struct fd_pair pipe();
.PP
/* On all other architectures */
.BI "int pipe(int " pipefd "[2]);"
.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
@ -54,6 +47,16 @@ pipe, pipe2 \- create pipe
.B #include <unistd.h>
.PP
.BI "int pipe2(int " pipefd "[2], int " flags );
.PP
/* On Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64, pipe() has the
following prototype; see NOTES */
.PP
.B #include <unistd.h>
.PP
.B struct fd_pair {
.B " long fd[2];"
.B "};"
.B struct fd_pair pipe();
.fi
.SH DESCRIPTION
.BR pipe ()

View File

@ -41,7 +41,7 @@ poll, ppoll \- wait for some event on a file descriptor
.B #include <poll.h>
.PP
.BI "int ppoll(struct pollfd *" fds ", nfds_t " nfds ,
.BI " const struct timespec *" tmo_p ", const sigset_t *" sigmask );
.BI " const struct timespec *" tmo_p ", const sigset_t *" sigmask );
.fi
.SH DESCRIPTION
.BR poll ()

View File

@ -271,7 +271,7 @@ To register with userfaultfd write-protect mode, the user needs to initiate the
ioctl with mode
.B UFFDIO_REGISTER_MODE_WP
set.
Note that it's legal to monitor the same memory range with multiple modes.
Note that it is legal to monitor the same memory range with multiple modes.
For example, the user can do
.B UFFDIO_REGISTER
with the mode set to
@ -467,8 +467,8 @@ otherwise it is a read fault.
.B UFFD_PAGEFAULT_FLAG_WP
If the address is in a range that was registered with the
.B UFFDIO_REGISTER_MODE_WP
flag, when this bit is set, it means it's a write-protect fault.
Otherwise it's a page-missing fault.
flag, when this bit is set, it means it is a write-protect fault.
Otherwise it is a page-missing fault.
.RE
.TP
.I pagefault.feat.pid

View File

@ -1133,6 +1133,7 @@ See
.BR user_namespaces (7),
.BR findmnt (8),
.BR mount (8),
.BR pam_namespace (8),
.BR pivot_root (8),
.BR umount (8)
.PP

View File

@ -436,5 +436,4 @@ and
.BR user_namespaces (7),
.BR uts_namespaces (7),
.BR lsns (8),
.BR pam_namespace (8),
.BR switch_root (8)

View File

@ -91,10 +91,10 @@ a single machine.
.in +4n
.EX
struct sockaddr_vm {
sa_family_t svm_family; /* Address family: AF_VSOCK */
sa_family_t svm_family; /* Address family: AF_VSOCK */
unsigned short svm_reserved1;
unsigned int svm_port; /* Port # in host byte order */
unsigned int svm_cid; /* Address in host byte order */
unsigned int svm_port; /* Port # in host byte order */
unsigned int svm_cid; /* Address in host byte order */
unsigned char svm_zero[sizeof(struct sockaddr) \-
sizeof(sa_family_t) \-
sizeof(unsigned short) \-
@ -236,7 +236,8 @@ Support for VMware (VMCI) has been available since Linux 3.9.
KVM (virtio) is supported since Linux 4.8.
Hyper-V is supported since Linux 4.14.
.PP
VMADDR_CID_LOCAL is supported since Linux 5.6.
.B VMADDR_CID_LOCAL
is supported since Linux 5.6.
.\" commit ef343b35d46667668a099655fca4a5b2e43a5dfe
Local communication in the guest and on the host is available since Linux 5.6.
Previous versions supported only local communication within a guest