Lines Matching refs:r
81 int r; in handle_uffd_page_request() local
92 r = ioctl(uffd, UFFDIO_COPY, ©); in handle_uffd_page_request()
93 if (r == -1) { in handle_uffd_page_request()
96 return r; in handle_uffd_page_request()
132 int r; in uffd_handler_thread_fn() local
140 r = poll(pollfd, 2, -1); in uffd_handler_thread_fn()
141 switch (r) { in uffd_handler_thread_fn()
150 pr_info("Polling uffd returned %d", r); in uffd_handler_thread_fn()
160 r = read(pollfd[1].fd, &tmp_chr, 1); in uffd_handler_thread_fn()
161 TEST_ASSERT(r == 1, in uffd_handler_thread_fn()
169 r = read(uffd, &msg, sizeof(msg)); in uffd_handler_thread_fn()
170 if (r == -1) { in uffd_handler_thread_fn()
177 if (r != sizeof(msg)) { in uffd_handler_thread_fn()
178 pr_info("Read on uffd returned unexpected size: %d bytes", r); in uffd_handler_thread_fn()
188 r = handle_uffd_page_request(uffd, addr); in uffd_handler_thread_fn()
189 if (r < 0) in uffd_handler_thread_fn()
262 int r; in run_test() local
304 r = pipe2(&pipefds[vcpu_id * 2], in run_test()
306 TEST_ASSERT(!r, "Failed to set up pipefd"); in run_test()
308 r = setup_demand_paging(vm, in run_test()
313 if (r < 0) in run_test()
314 exit(-r); in run_test()
347 r = write(pipefds[vcpu_id * 2 + 1], &c, 1); in run_test()
348 TEST_ASSERT(r == 1, "Unable to write to pipefd"); in run_test()