Home
last modified time | relevance | path

Searched refs:reader_args (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/tools/testing/selftests/kvm/lib/
Duserfaultfd_util.c28 struct uffd_reader_args *reader_args = (struct uffd_reader_args *)arg; in uffd_handler_thread_fn() local
29 int uffd = reader_args->uffd; in uffd_handler_thread_fn()
46 TEST_ASSERT(!epoll_ctl(epollfd, EPOLL_CTL_ADD, reader_args->pipe, &evt), in uffd_handler_thread_fn()
64 r = read(reader_args->pipe, &tmp_chr, 1); in uffd_handler_thread_fn()
86 if (reader_args->delay) in uffd_handler_thread_fn()
87 usleep(reader_args->delay); in uffd_handler_thread_fn()
88 r = reader_args->handler(reader_args->uffd_mode, uffd, &msg); in uffd_handler_thread_fn()
128 uffd_desc->reader_args = calloc(sizeof(struct uffd_reader_args), num_readers); in uffd_setup_demand_paging()
129 TEST_ASSERT(uffd_desc->reader_args, "Failed to alloc reader_args"); in uffd_setup_demand_paging()
164 uffd_desc->reader_args[i].uffd_mode = uffd_mode; in uffd_setup_demand_paging()
[all …]
/linux-6.12.1/tools/testing/selftests/kvm/include/
Duserfaultfd_util.h32 struct uffd_reader_args *reader_args; member