Searched refs:uffd_msg (Results 1 – 14 of 14) sorted by relevance
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_mod_race.c | 94 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/ |
D | uffd-common.h | 82 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);
|
D | uffd-common.c | 407 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()
|
D | uffd-stress.c | 133 struct uffd_msg msg; in uffd_read_thread()
|
D | uffd-unit-tests.c | 238 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/ |
D | userfaultfd_util.h | 18 typedef int (*uffd_handler_t)(int uffd_mode, int uffd, struct uffd_msg *msg);
|
/Linux-v6.6/fs/ |
D | userfaultfd.c | 107 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/ |
D | userfaultfd_util.c | 40 struct uffd_msg msg; in uffd_handler_thread_fn()
|
/Linux-v6.6/include/uapi/linux/ |
D | userfaultfd.h | 102 struct uffd_msg { struct
|
/Linux-v6.6/tools/testing/selftests/kvm/aarch64/ |
D | page_fault_test.c | 310 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/ |
D | tm-signal-pagefault.c | 85 struct uffd_msg msg; /* Data read from userfaultfd */ in fault_handler_thread()
|
/Linux-v6.6/Documentation/admin-guide/mm/ |
D | userfaultfd.rst | 175 ``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/ |
D | demand_paging_test.c | 61 struct uffd_msg *msg) in handle_uffd_page_request()
|
/Linux-v6.6/tools/testing/selftests/x86/ |
D | test_shadow_stack.c | 458 struct uffd_msg msg; in uffd_thread()
|