Lines Matching refs:reader_args
28 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()
165 uffd_desc->reader_args[i].uffd = uffd; in uffd_setup_demand_paging()
166 uffd_desc->reader_args[i].delay = delay; in uffd_setup_demand_paging()
167 uffd_desc->reader_args[i].handler = handler; in uffd_setup_demand_paging()
168 uffd_desc->reader_args[i].pipe = pipes[0]; in uffd_setup_demand_paging()
171 &uffd_desc->reader_args[i]); in uffd_setup_demand_paging()
197 close(uffd->reader_args[i].pipe); in uffd_stop_demand_paging()
202 free(uffd->reader_args); in uffd_stop_demand_paging()