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

/linux-4.4.14/include/uapi/linux/
H A Duserfaultfd.h50 struct uffdio_register)
122 struct uffdio_register { struct
143 * range according to the uffdio_register.ioctls.
/linux-4.4.14/fs/
H A Duserfaultfd.c723 struct uffdio_register uffdio_register; userfaultfd_register() local
724 struct uffdio_register __user *user_uffdio_register; userfaultfd_register()
729 user_uffdio_register = (struct uffdio_register __user *) arg; userfaultfd_register()
732 if (copy_from_user(&uffdio_register, user_uffdio_register, userfaultfd_register()
733 sizeof(uffdio_register)-sizeof(__u64))) userfaultfd_register()
737 if (!uffdio_register.mode) userfaultfd_register()
739 if (uffdio_register.mode & ~(UFFDIO_REGISTER_MODE_MISSING| userfaultfd_register()
743 if (uffdio_register.mode & UFFDIO_REGISTER_MODE_MISSING) userfaultfd_register()
745 if (uffdio_register.mode & UFFDIO_REGISTER_MODE_WP) { userfaultfd_register()
755 ret = validate_range(mm, uffdio_register.range.start, userfaultfd_register()
756 uffdio_register.range.len); userfaultfd_register()
760 start = uffdio_register.range.start; userfaultfd_register()
761 end = start + uffdio_register.range.len; userfaultfd_register()
/linux-4.4.14/tools/testing/selftests/vm/
H A Duserfaultfd.c422 struct uffdio_register uffdio_register; userfaultfd_stress() local
524 uffdio_register.range.start = (unsigned long) area_dst; userfaultfd_stress()
525 uffdio_register.range.len = nr_pages * page_size; userfaultfd_stress()
526 uffdio_register.mode = UFFDIO_REGISTER_MODE_MISSING; userfaultfd_stress()
527 if (ioctl(uffd, UFFDIO_REGISTER, &uffdio_register)) { userfaultfd_stress()
534 if ((uffdio_register.ioctls & expected_ioctls) != userfaultfd_stress()
575 if (ioctl(uffd, UFFDIO_UNREGISTER, &uffdio_register.range)) { userfaultfd_stress()

Completed in 138 milliseconds