1 #include <linux/userfaultfd.h>
2 #ifndef UFFD_USER_MODE_ONLY
3 // this definition is not available before Linux 5.11. It is provided so
4 // userfaultfd-sys has the same exports on all kernels
5 #define UFFD_USER_MODE_ONLY 1
6 #endif
7 
8 
9 #ifndef USERFAULTFD_IOC
10 // Similarly, the ioctl() for `/dev/userfaultfd` is introduced with Linux 6.1.
11 #define USERFAULTFD_IOC 0xAA
12 #endif
13