mirror of https://github.com/mkerrisk/man-pages
ioctl_userfaultfd.2: Minor tweaks to Mike Rapoport's patches
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
be9021b1bb
commit
5191c68806
|
@ -184,14 +184,15 @@ If this feature bit is set,
|
||||||
the kernel supports registering userfaultfd ranges on shared memory areas.
|
the kernel supports registering userfaultfd ranges on shared memory areas.
|
||||||
This includes all kernel shared memory APIs:
|
This includes all kernel shared memory APIs:
|
||||||
System V shared memory,
|
System V shared memory,
|
||||||
tmpfs,
|
.BR tmpfs (5),
|
||||||
/dev/zero,
|
shared mappings of
|
||||||
.BR mmap(2)
|
.IR /dev/zero ,
|
||||||
with
|
.BR mmap (2)
|
||||||
|
with the
|
||||||
.I MAP_SHARED
|
.I MAP_SHARED
|
||||||
flag set,
|
flag set,
|
||||||
.BR memfd_create (2),
|
.BR memfd_create (2),
|
||||||
etc.
|
and so on.
|
||||||
|
|
||||||
The returned
|
The returned
|
||||||
.I ioctls
|
.I ioctls
|
||||||
|
@ -482,16 +483,14 @@ An invalid bit was specified in the
|
||||||
.IR mode
|
.IR mode
|
||||||
field.
|
field.
|
||||||
.TP
|
.TP
|
||||||
.B ENOENT
|
.BR ENOENT " (since Linux 4.11)"
|
||||||
(Since Linux 4.11)
|
|
||||||
The faulting process has changed
|
The faulting process has changed
|
||||||
its virtual memory layout simultaneously with outstanding
|
its virtual memory layout simultaneously with an outstanding
|
||||||
.I UFFDIO_COPY
|
.I UFFDIO_COPY
|
||||||
operation.
|
operation.
|
||||||
.TP
|
.TP
|
||||||
.B ENOSPC
|
.BR ENOSPC " (since Linux 4.11)"
|
||||||
(Since Linux 4.11)
|
The faulting process has exited at the time of a
|
||||||
The faulting process has exited at the time of
|
|
||||||
.I UFFDIO_COPY
|
.I UFFDIO_COPY
|
||||||
operation.
|
operation.
|
||||||
.\"
|
.\"
|
||||||
|
@ -652,13 +651,13 @@ See
|
||||||
.BR userfaultfd (2).
|
.BR userfaultfd (2).
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
In order to detect available userfault features and
|
In order to detect available userfault features and
|
||||||
enable certain subset of those features
|
enable some subset of those features
|
||||||
the usefault file descriptor must be closed after the first
|
the userfaultfd file descriptor must be closed after the first
|
||||||
.BR UFFDIO_API
|
.BR UFFDIO_API
|
||||||
operation that queries features availability and re-opened before
|
operation that queries features availability and reopened before
|
||||||
the second
|
the second
|
||||||
.BR UFFDIO_API
|
.BR UFFDIO_API
|
||||||
call that actually enables the desired features.
|
operation that actually enables the desired features.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR ioctl (2),
|
.BR ioctl (2),
|
||||||
.BR mmap (2),
|
.BR mmap (2),
|
||||||
|
|
Loading…
Reference in New Issue