Searched refs:uffd (Results 1 – 5 of 5) sorted by relevance
| /Linux-v5.15/tools/testing/selftests/powerpc/tm/ |
| D | tm-signal-pagefault.c | 86 long uffd; /* userfaultfd file descriptor */ in fault_handler_thread() local 91 uffd = (long) arg; in fault_handler_thread() 94 pollfd.fd = uffd; in fault_handler_thread() 101 nread = read(uffd, &msg, sizeof(msg)); in fault_handler_thread() 130 if (ioctl(uffd, UFFDIO_COPY, &uffdio_copy) == -1) { in fault_handler_thread() 139 long uffd; /* userfaultfd file descriptor */ in setup_uf_mem() local 148 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); in setup_uf_mem() 149 if (uffd == -1) { in setup_uf_mem() 155 if (ioctl(uffd, UFFDIO_API, &uffdio_api) == -1) { in setup_uf_mem() 180 if (ioctl(uffd, UFFDIO_REGISTER, &uffdio_register) == -1) { in setup_uf_mem() [all …]
|
| /Linux-v5.15/tools/testing/selftests/kvm/ |
| D | demand_paging_test.c | 75 static int handle_uffd_page_request(int uffd_mode, int uffd, uint64_t addr) in handle_uffd_page_request() argument 92 r = ioctl(uffd, UFFDIO_COPY, ©); in handle_uffd_page_request() 104 r = ioctl(uffd, UFFDIO_CONTINUE, &cont); in handle_uffd_page_request() 128 int uffd; member 136 int uffd = uffd_args->uffd; in uffd_handler_thread_fn() local 151 pollfd[0].fd = uffd; in uffd_handler_thread_fn() 185 r = read(uffd, &msg, sizeof(msg)); in uffd_handler_thread_fn() 204 r = handle_uffd_page_request(uffd_args->uffd_mode, uffd, addr); in uffd_handler_thread_fn() 225 int uffd; in setup_demand_paging() local 247 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); in setup_demand_paging() [all …]
|
| /Linux-v5.15/tools/testing/selftests/vm/ |
| D | userfaultfd.c | 92 static int uffd = -1; variable 352 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK | UFFD_USER_MODE_ONLY); in userfaultfd_open() 353 if (uffd < 0) in userfaultfd_open() 355 uffd_flags = fcntl(uffd, F_GETFD, NULL); in userfaultfd_open() 359 if (ioctl(uffd, UFFDIO_API, &uffdio_api)) in userfaultfd_open() 395 if (uffd != -1) { in uffd_test_ctx_clear() 396 if (close(uffd)) in uffd_test_ctx_clear() 398 uffd = -1; in uffd_test_ctx_clear() 642 int ret = read(uffd, msg, sizeof(*msg)); in uffd_read_msg() 667 wp_range(uffd, msg->arg.pagefault.address, page_size, false); in uffd_handle_page_fault() [all …]
|
| /Linux-v5.15/Documentation/admin-guide/mm/ |
| D | userfaultfd.rst | 151 uffd. You can supply as many pages as you want with these IOCTLs. 167 ``ioctl(uffd, UFFDIO_WRITEPROTECT, struct *uffdio_writeprotect)`` 172 Then, in the thread reading from uffd the struct will have 174 ``ioctl(uffd, UFFDIO_WRITEPROTECT, struct *uffdio_writeprotect)`` 177 allows you to do the bookkeeping about the write in the uffd reading
|
| D | pagemap.rst | 24 * Bit 57 pte is uffd-wp write-protected (since 5.13) (see
|