ioctl_userfaultfd.2: Note that UFFDIO_UNREGISTER address range must be compatible

Reported-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-04-21 09:11:15 +02:00
parent d87f377e4e
commit 1c63cefda2
1 changed files with 8 additions and 0 deletions

View File

@ -160,6 +160,11 @@ field was not zero.
.\" FIXME In the above error case, the returned 'uffdio_api' structure is
.\" zeroed out. Why is this done? This should be explained in the manual page.
.\"
.\" Mike Rapoport:
.\" In my understanding the uffdio_api
.\" structure is zeroed to allow the caller
.\" to distinguish the reasons for -EINVAL.
.\"
.SS UFFDIO_REGISTER
(Since Linux 4.3.)
Register a memory address range with the userfaultfd object.
@ -269,6 +274,9 @@ There as an incompatible mapping in the specified address range.
.SS UFFDIO_UNREGISTER
(Since Linux 4.3.)
Unregister a memory address range from userfaultfd.
The pages in the range must be "compatible" (see the description of
.BR UFFDIO_REGISTER .)
The address range to unregister is specified in the
.IR uffdio_range
structure pointed to by