UFFDIO_WAKE
(2const)wake up a thread waiting for page-fault resolution
#include <linux/userfaultfd.h> /* Definition of UFFD* constants */ #include <sys/ioctl.h> int ioctl(int fd, UFFDIO_WAKE, const struct uffdio_range *argp);
LIBRARY
DESCRIPTION
Wake up the thread waiting for page-fault resolution on a specified memory address range.
The UFFDIO_WAKE operation is used in conjunction with UFFDIO_COPY and UFFDIO_ZEROPAGE operations that have the UFFDIO_COPY_MODE_DONTWAKE or UFFDIO_ZEROPAGE_MODE_DONTWAKE bit set in the mode field. The userfault monitor can perform several UFFDIO_COPY and UFFDIO_ZEROPAGE operations in a batch and then explicitly wake up the faulting thread using UFFDIO_WAKE.
RETURN VALUE
ERRORS
- EINVAL
- The start or the len field of the ufdio_range structure was not a multiple of the system page size; or len was zero; or the specified range was otherwise invalid.