userfaultfd.2: Expand description of UFFDIO_UNREGISTER

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-12-29 15:46:37 +01:00
parent 01dbb172a1
commit 46c15a0426
1 changed files with 30 additions and 1 deletions

View File

@ -205,7 +205,36 @@ field.
.\"
.TP
.BI "UFFDIO_UNREGISTER struct uffdio_register *" argp
Unregister a memory range from userfaultfd.
Unregister a memory address range from userfaultfd.
The address range to unregister is specified in the
.IR uffdio_range
structure pointed to by
.IR argp .
This
.BR ioctl (2)
operation returns 0 on success.
On error, \-1 is returned and
.I errno
is set to indicate the cause of the error.
Possible errors include:
.RS
.TP
.B EINVAL
Either the
.I start
or the
.I len
field of the
.I ufdio_range
structure was not a multiple of the system page size.
.TP
.B EINVAL
There as an incompatible mapping in the specified address range.
.TP
.B EINVAL
There was no mapping in the specified address range.
.RE
.\"
.SS Range ioctl(2) operations
The range