logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

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.

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.

Examples

       See userfaultfd(2).

History

       Linux 4.3.

Library

       Standard C library (libc, -lc)

Name

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

Return Value

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

See Also

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

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

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

Standards

       Linux.

Synopsis

#include<linux/userfaultfd.h>  /* Definition of UFFD* constants */
       #include<sys/ioctl.h>intioctl(intfd,UFFDIO_WAKE,conststructuffdio_range*argp);

See Also