Home
last modified time | relevance | path

Searched refs:uffdio_copy (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/tools/testing/selftests/mm/
Duffd-common.c571 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument
574 uffd_test_ops->alias_mapping(&uffdio_copy->dst, in retry_copy_page()
575 uffdio_copy->len, in retry_copy_page()
577 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page()
579 if (uffdio_copy->copy != -EEXIST) in retry_copy_page()
581 (int64_t)uffdio_copy->copy); in retry_copy_page()
584 (int64_t)uffdio_copy->copy); in retry_copy_page()
602 struct uffdio_copy uffdio_copy; in __copy_page() local
606 uffdio_copy.dst = (unsigned long) area_dst + offset; in __copy_page()
607 uffdio_copy.src = (unsigned long) area_src + offset; in __copy_page()
[all …]
Dmkdirty.c271 struct uffdio_copy uffdio_copy; in test_uffdio_copy() local
308 uffdio_copy.dst = (unsigned long) dst; in test_uffdio_copy()
309 uffdio_copy.src = (unsigned long) src; in test_uffdio_copy()
310 uffdio_copy.len = pagesize; in test_uffdio_copy()
311 uffdio_copy.mode = 0; in test_uffdio_copy()
312 if (ioctl(uffd, UFFDIO_COPY, &uffdio_copy)) { in test_uffdio_copy()
/linux-6.12.1/tools/testing/selftests/powerpc/tm/
Dtm-signal-pagefault.c87 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-6.12.1/fs/
Duserfaultfd.c1581 struct uffdio_copy uffdio_copy; in userfaultfd_copy() local
1582 struct uffdio_copy __user *user_uffdio_copy; in userfaultfd_copy()
1586 user_uffdio_copy = (struct uffdio_copy __user *) arg; in userfaultfd_copy()
1593 if (copy_from_user(&uffdio_copy, user_uffdio_copy, in userfaultfd_copy()
1595 sizeof(uffdio_copy)-sizeof(__s64))) in userfaultfd_copy()
1598 ret = validate_unaligned_range(ctx->mm, uffdio_copy.src, in userfaultfd_copy()
1599 uffdio_copy.len); in userfaultfd_copy()
1602 ret = validate_range(ctx->mm, uffdio_copy.dst, uffdio_copy.len); in userfaultfd_copy()
1607 if (uffdio_copy.mode & ~(UFFDIO_COPY_MODE_DONTWAKE|UFFDIO_COPY_MODE_WP)) in userfaultfd_copy()
1609 if (uffdio_copy.mode & UFFDIO_COPY_MODE_WP) in userfaultfd_copy()
[all …]
/linux-6.12.1/tools/include/uapi/linux/
Duserfaultfd.h95 struct uffdio_copy)
275 struct uffdio_copy { struct
/linux-6.12.1/include/uapi/linux/
Duserfaultfd.h95 struct uffdio_copy)
275 struct uffdio_copy { struct
/linux-6.12.1/tools/testing/selftests/kvm/
Ddemand_paging_test.c69 struct uffdio_copy copy; in handle_uffd_page_request()
/linux-6.12.1/tools/testing/selftests/x86/
Dtest_shadow_stack.c457 struct uffdio_copy req; in uffd_thread()
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dpage_fault_test.c314 struct uffdio_copy copy; in uffd_generic_handler()