Searched refs:uffdio_copy (Results 1 – 4 of 4) sorted by relevance
/linux-4.4.14/tools/testing/selftests/vm/ |
D | userfaultfd.c | 222 struct uffdio_copy uffdio_copy; in copy_page() local 227 uffdio_copy.dst = (unsigned long) area_dst + offset; in copy_page() 228 uffdio_copy.src = (unsigned long) area_src + offset; in copy_page() 229 uffdio_copy.len = page_size; in copy_page() 230 uffdio_copy.mode = 0; in copy_page() 231 uffdio_copy.copy = 0; in copy_page() 232 if (ioctl(uffd, UFFDIO_COPY, &uffdio_copy)) { in copy_page() 234 if (uffdio_copy.copy != -EEXIST) in copy_page() 236 uffdio_copy.copy), exit(1); in copy_page() 237 } else if (uffdio_copy.copy != page_size) { in copy_page() [all …]
|
/linux-4.4.14/fs/ |
D | userfaultfd.c | 1045 struct uffdio_copy uffdio_copy; in userfaultfd_copy() local 1046 struct uffdio_copy __user *user_uffdio_copy; in userfaultfd_copy() 1049 user_uffdio_copy = (struct uffdio_copy __user *) arg; in userfaultfd_copy() 1052 if (copy_from_user(&uffdio_copy, user_uffdio_copy, in userfaultfd_copy() 1054 sizeof(uffdio_copy)-sizeof(__s64))) in userfaultfd_copy() 1057 ret = validate_range(ctx->mm, uffdio_copy.dst, uffdio_copy.len); in userfaultfd_copy() 1066 if (uffdio_copy.src + uffdio_copy.len <= uffdio_copy.src) in userfaultfd_copy() 1068 if (uffdio_copy.mode & ~UFFDIO_COPY_MODE_DONTWAKE) in userfaultfd_copy() 1071 ret = mcopy_atomic(ctx->mm, uffdio_copy.dst, uffdio_copy.src, in userfaultfd_copy() 1072 uffdio_copy.len); in userfaultfd_copy() [all …]
|
/linux-4.4.14/include/uapi/linux/ |
D | userfaultfd.h | 56 struct uffdio_copy) 135 struct uffdio_copy { struct
|
/linux-4.4.14/Documentation/vm/ |
D | userfaultfd.txt | 78 up the blocked userfaults (unless uffdio_copy.mode &
|