ioctl_userfaultfd.2: Add BUGS section

The features handshake is not quite convenient.
Elaborate about it in the BUGS section.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Mike Rapoport 2017-05-01 08:43:17 +03:00 committed by Michael Kerrisk
parent 337405ef74
commit 53004b3ba0
1 changed files with 9 additions and 0 deletions

View File

@ -650,6 +650,15 @@ operations are Linux-specific.
.SH EXAMPLE
See
.BR userfaultfd (2).
.SH BUGS
In order to detect available userfault features and
enable certain subset of those features
the usefault file descriptor must be closed after the first
.BR UFFDIO_API
operation that queries features availability and re-opened before
the second
.BR UFFDIO_API
call that actually enables the desired features.
.SH SEE ALSO
.BR ioctl (2),
.BR mmap (2),