Lines Matching refs:uffd_desc
30 struct uffd_desc *uffd_desc = (struct uffd_desc *)arg; in uffd_handler_thread_fn() local
31 int uffd = uffd_desc->uffd; in uffd_handler_thread_fn()
32 int pipefd = uffd_desc->pipefds[0]; in uffd_handler_thread_fn()
33 useconds_t delay = uffd_desc->delay; in uffd_handler_thread_fn()
97 r = uffd_desc->handler(uffd_desc->uffd_mode, uffd, &msg); in uffd_handler_thread_fn()
111 struct uffd_desc *uffd_setup_demand_paging(int uffd_mode, useconds_t delay, in uffd_setup_demand_paging()
115 struct uffd_desc *uffd_desc; in uffd_setup_demand_paging() local
127 uffd_desc = malloc(sizeof(struct uffd_desc)); in uffd_setup_demand_paging()
128 TEST_ASSERT(uffd_desc, "malloc failed"); in uffd_setup_demand_paging()
151 ret = pipe2(uffd_desc->pipefds, O_CLOEXEC | O_NONBLOCK); in uffd_setup_demand_paging()
154 uffd_desc->uffd_mode = uffd_mode; in uffd_setup_demand_paging()
155 uffd_desc->uffd = uffd; in uffd_setup_demand_paging()
156 uffd_desc->delay = delay; in uffd_setup_demand_paging()
157 uffd_desc->handler = handler; in uffd_setup_demand_paging()
158 pthread_create(&uffd_desc->thread, NULL, uffd_handler_thread_fn, in uffd_setup_demand_paging()
159 uffd_desc); in uffd_setup_demand_paging()
164 return uffd_desc; in uffd_setup_demand_paging()
167 void uffd_stop_demand_paging(struct uffd_desc *uffd) in uffd_stop_demand_paging()