Home
last modified time | relevance | path

Searched refs:uffd_msg (Results 1 – 14 of 14) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dbpf_mod_race.c94 struct uffd_msg uffd_msg; in test_bpf_mod_race_config() local
141 if (!ASSERT_EQ(read(uffd, &uffd_msg, sizeof(uffd_msg)), sizeof(uffd_msg), in test_bpf_mod_race_config()
144 if (!ASSERT_EQ(uffd_msg.event, UFFD_EVENT_PAGEFAULT, "read uffd event is pagefault")) in test_bpf_mod_race_config()
/Linux-v6.6/tools/testing/selftests/mm/
Duffd-common.h82 void (*handle_fault)(struct uffd_msg *msg, struct uffd_args *args);
109 int uffd_read_msg(int ufd, struct uffd_msg *msg);
111 void uffd_handle_page_fault(struct uffd_msg *msg, struct uffd_args *args);
Duffd-common.c407 int uffd_read_msg(int ufd, struct uffd_msg *msg) in uffd_read_msg()
424 void uffd_handle_page_fault(struct uffd_msg *msg, struct uffd_args *args) in uffd_handle_page_fault()
497 struct uffd_msg msg; in uffd_poll_thread()
Duffd-stress.c133 struct uffd_msg msg; in uffd_read_thread()
Duffd-unit-tests.c238 struct uffd_msg msg = { 0 }; in fork_event_consumer()
986 struct uffd_msg *msg, struct uffd_args *args) in uffd_poison_handle_fault()
/Linux-v6.6/tools/testing/selftests/kvm/include/
Duserfaultfd_util.h18 typedef int (*uffd_handler_t)(int uffd_mode, int uffd, struct uffd_msg *msg);
/Linux-v6.6/fs/
Duserfaultfd.c107 struct uffd_msg msg;
230 static inline void msg_init(struct uffd_msg *msg) in msg_init()
232 BUILD_BUG_ON(sizeof(struct uffd_msg) != 32); in msg_init()
237 memset(msg, 0, sizeof(struct uffd_msg)); in msg_init()
240 static inline struct uffd_msg userfault_msg(unsigned long address, in userfault_msg()
246 struct uffd_msg msg; in userfault_msg()
1032 struct uffd_msg *msg) in resolve_userfault_fork()
1047 struct uffd_msg *msg, struct inode *inode) in userfaultfd_ctx_read()
1216 struct uffd_msg msg; in userfaultfd_read()
/Linux-v6.6/tools/testing/selftests/kvm/lib/
Duserfaultfd_util.c40 struct uffd_msg msg; in uffd_handler_thread_fn()
/Linux-v6.6/include/uapi/linux/
Duserfaultfd.h102 struct uffd_msg { struct
/Linux-v6.6/tools/testing/selftests/kvm/aarch64/
Dpage_fault_test.c310 static int uffd_generic_handler(int uffd_mode, int uffd, struct uffd_msg *msg, in uffd_generic_handler()
343 static int uffd_pt_handler(int mode, int uffd, struct uffd_msg *msg) in uffd_pt_handler()
348 static int uffd_data_handler(int mode, int uffd, struct uffd_msg *msg) in uffd_data_handler()
400 static int uffd_no_handler(int mode, int uffd, struct uffd_msg *msg) in uffd_no_handler()
/Linux-v6.6/tools/testing/selftests/powerpc/tm/
Dtm-signal-pagefault.c85 struct uffd_msg msg; /* Data read from userfaultfd */ in fault_handler_thread()
/Linux-v6.6/Documentation/admin-guide/mm/
Duserfaultfd.rst175 ``pagefault.flags`` within the ``uffd_msg``, checking for the
183 event out of a struct uffd_msg that you read in the thread from the
340 ``userfaultfd`` context in the ``uffd_msg.fork``.
346 ``UFFD_EVENT_REMAP``. The ``uffd_msg.remap`` will contain the old and
352 be generated upon these calls to madvise(). The ``uffd_msg.remove``
357 get ``UFFD_EVENT_UNMAP`` with ``uffd_msg.remove`` containing start and
/Linux-v6.6/tools/testing/selftests/kvm/
Ddemand_paging_test.c61 struct uffd_msg *msg) in handle_uffd_page_request()
/Linux-v6.6/tools/testing/selftests/x86/
Dtest_shadow_stack.c458 struct uffd_msg msg; in uffd_thread()