Searched refs:uffdio_copy (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/fs/
H A Duserfaultfd.c1045 struct uffdio_copy uffdio_copy; userfaultfd_copy() local
1046 struct uffdio_copy __user *user_uffdio_copy; userfaultfd_copy()
1049 user_uffdio_copy = (struct uffdio_copy __user *) arg; userfaultfd_copy()
1052 if (copy_from_user(&uffdio_copy, user_uffdio_copy, userfaultfd_copy()
1054 sizeof(uffdio_copy)-sizeof(__s64))) userfaultfd_copy()
1057 ret = validate_range(ctx->mm, uffdio_copy.dst, uffdio_copy.len); userfaultfd_copy()
1062 * will later check uffdio_copy.src + uffdio_copy.len to fit userfaultfd_copy()
1066 if (uffdio_copy.src + uffdio_copy.len <= uffdio_copy.src) userfaultfd_copy()
1068 if (uffdio_copy.mode & ~UFFDIO_COPY_MODE_DONTWAKE) userfaultfd_copy()
1071 ret = mcopy_atomic(ctx->mm, uffdio_copy.dst, uffdio_copy.src, userfaultfd_copy()
1072 uffdio_copy.len); userfaultfd_copy()
1080 if (!(uffdio_copy.mode & UFFDIO_COPY_MODE_DONTWAKE)) { userfaultfd_copy()
1081 range.start = uffdio_copy.dst; userfaultfd_copy()
1084 ret = range.len == uffdio_copy.len ? 0 : -EAGAIN; userfaultfd_copy()
/linux-4.4.14/tools/testing/selftests/vm/
H A Duserfaultfd.c222 struct uffdio_copy uffdio_copy; copy_page() local
227 uffdio_copy.dst = (unsigned long) area_dst + offset; copy_page()
228 uffdio_copy.src = (unsigned long) area_src + offset; copy_page()
229 uffdio_copy.len = page_size; copy_page()
230 uffdio_copy.mode = 0; copy_page()
231 uffdio_copy.copy = 0; copy_page()
232 if (ioctl(uffd, UFFDIO_COPY, &uffdio_copy)) { copy_page()
234 if (uffdio_copy.copy != -EEXIST) copy_page()
236 uffdio_copy.copy), exit(1); copy_page()
237 } else if (uffdio_copy.copy != page_size) { copy_page()
239 uffdio_copy.copy), exit(1); copy_page()
/linux-4.4.14/include/uapi/linux/
H A Duserfaultfd.h56 struct uffdio_copy)
135 struct uffdio_copy { struct

Completed in 127 milliseconds