Searched refs:uffdio_copy (Results 1 – 8 of 8) sorted by relevance
| /linux/tools/testing/selftests/powerpc/tm/ |
| H A D | tm-signal-pagefault.c | 87 struct uffdio_copy uffdio_copy; in fault_handler_thread() local 122 uffdio_copy.dst = msg.arg.pagefault.address & ~(pagesize-1); in fault_handler_thread() 124 offset = (char *) uffdio_copy.dst - uf_mem; in fault_handler_thread() 125 uffdio_copy.src = (unsigned long) &backing_mem[offset]; in fault_handler_thread() 127 uffdio_copy.len = pagesize; in fault_handler_thread() 128 uffdio_copy.mode = 0; in fault_handler_thread() 129 uffdio_copy.copy = 0; in fault_handler_thread() 130 if (ioctl(uffd, UFFDIO_COPY, &uffdio_copy) == -1) { in fault_handler_thread()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | uffd-common.c | 597 static void retry_copy_page(uffd_global_test_opts_t *gopts, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument 601 &uffdio_copy->dst, in retry_copy_page() 602 uffdio_copy->len, in retry_copy_page() 604 if (ioctl(gopts->uffd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page() 606 if (uffdio_copy->copy != -EEXIST) in retry_copy_page() 608 (int64_t)uffdio_copy->copy); in retry_copy_page() 611 (int64_t)uffdio_copy->copy); in retry_copy_page() 629 struct uffdio_copy uffdio_copy; in __copy_page() local 633 uffdio_copy.dst = (unsigned long) gopts->area_dst + offset; in __copy_page() 634 uffdio_copy.src = (unsigned long) gopts->area_src + offset; in __copy_page() [all …]
|
| H A D | mkdirty.c | 272 struct uffdio_copy uffdio_copy; in test_uffdio_copy() local 310 uffdio_copy.dst = (unsigned long) dst; in test_uffdio_copy() 311 uffdio_copy.src = (unsigned long) src; in test_uffdio_copy() 312 uffdio_copy.len = pagesize; in test_uffdio_copy() 313 uffdio_copy.mode = 0; in test_uffdio_copy() 314 if (ioctl(uffd, UFFDIO_COPY, &uffdio_copy)) { in test_uffdio_copy()
|
| /linux/fs/ |
| H A D | userfaultfd.c | 1608 struct uffdio_copy uffdio_copy; in userfaultfd_copy() local 1609 struct uffdio_copy __user *user_uffdio_copy; in userfaultfd_copy() 1613 user_uffdio_copy = (struct uffdio_copy __user *) arg; in userfaultfd_copy() 1623 if (copy_from_user(&uffdio_copy, user_uffdio_copy, in userfaultfd_copy() 1625 sizeof(uffdio_copy)-sizeof(__s64))) in userfaultfd_copy() 1628 ret = validate_unaligned_range(ctx->mm, uffdio_copy.src, in userfaultfd_copy() 1629 uffdio_copy.len); in userfaultfd_copy() 1632 ret = validate_range(ctx->mm, uffdio_copy.dst, uffdio_copy.len); in userfaultfd_copy() 1637 if (uffdio_copy.mode & ~(UFFDIO_COPY_MODE_DONTWAKE|UFFDIO_COPY_MODE_WP)) in userfaultfd_copy() 1639 if (uffdio_copy.mode & UFFDIO_COPY_MODE_WP) in userfaultfd_copy() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | userfaultfd.h | 95 struct uffdio_copy) 275 struct uffdio_copy { struct
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | demand_paging_test.c | 69 struct uffdio_copy copy; in handle_uffd_page_request()
|
| /linux/tools/testing/selftests/x86/ |
| H A D | test_shadow_stack.c | 457 struct uffdio_copy req; in uffd_thread()
|
| /linux/tools/testing/selftests/kvm/arm64/ |
| H A D | page_fault_test.c | 314 struct uffdio_copy copy; in uffd_generic_handler()
|