Searched refs:UFFD_USER_MODE_ONLY (Results 1 – 7 of 7) sorted by relevance
41 #define UFFD_FLAGS (O_CLOEXEC | O_NONBLOCK | UFFD_USER_MODE_ONLY)
696 int fd = uffd_open(UFFD_USER_MODE_ONLY); in uffd_get_features()
96 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK | UFFD_USER_MODE_ONLY); in init_uffd()
384 #define UFFD_USER_MODE_ONLY 1 macro
395 if (!(vmf->flags & FAULT_FLAG_USER) && (ctx->flags & UFFD_USER_MODE_ONLY)) in handle_userfault()2097 BUILD_BUG_ON(UFFD_USER_MODE_ONLY & UFFD_SHARED_FCNTL_FLAGS); in new_userfaultfd()2101 if (flags & ~(UFFD_SHARED_FCNTL_FLAGS | UFFD_USER_MODE_ONLY)) in new_userfaultfd()2141 if (flags & UFFD_USER_MODE_ONLY) in userfaultfd_syscall_allowed()
65 with the flag UFFD_USER_MODE_ONLY.
974 SYS_CAP_PTRACE must pass UFFD_USER_MODE_ONLY in order for userfaultfd to