UFFDIO_WAKE(2const) — Linux manual page

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUE | ERRORS | STANDARDS | HISTORY | EXAMPLES | SEE ALSO | COLOPHON

UFFDIO_WAKE(2const)                                  UFFDIO_WAKE(2const)

NAME         top

       UFFDIO_WAKE - wake up a thread waiting for page-fault resolution

LIBRARY         top

       Standard C library (libc, -lc)

SYNOPSIS         top

       #include <linux/userfaultfd.h>  /* Definition of UFFD* constants */
       #include <sys/ioctl.h>

       int ioctl(int fd, UFFDIO_WAKE, const struct uffdio_range *argp);

DESCRIPTION         top

       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         top

       This ioctl(2) operation returns 0 on success.  On error, -1 is
       returned and errno is set to indicate the error.

ERRORS         top

       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.

STANDARDS         top

       Linux.

HISTORY         top

       Linux 4.3.

EXAMPLES         top

       See userfaultfd(2).

SEE ALSO         top

       ioctl(2), ioctl_userfaultfd(2), UFFDIO_REGISTER(2const),
       userfaultfd(2)

       linux.git/Documentation/admin-guide/mm/userfaultfd.rst

COLOPHON         top

       This page is part of the man-pages (Linux kernel and C library
       user-space interface documentation) project.  Information about
       the project can be found at 
       ⟨https://www.kernel.org/doc/man-pages/⟩.  If you have a bug report
       for this manual page, see
       ⟨https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING⟩.
       This page was obtained from the tarball man-pages-6.9.1.tar.gz
       fetched from
       ⟨https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/⟩ on
       2024-06-26.  If you discover any rendering problems in this HTML
       version of the page, or you believe there is a better or more up-
       to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not
       part of the original manual page), send a mail to
       [email protected]

Linux man-pages 6.9.1          2024-06-14            UFFDIO_WAKE(2const)

Pages that refer to this page: ioctl_userfaultfd(2)