Home
last modified time | relevance | path

Searched refs:uffdio_zeropage (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/tools/testing/selftests/vm/
Duserfaultfd.c1115 struct uffdio_zeropage *uffdio_zeropage, in retry_uffdio_zeropage() argument
1118 uffd_test_ops->alias_mapping(&uffdio_zeropage->range.start, in retry_uffdio_zeropage()
1119 uffdio_zeropage->range.len, in retry_uffdio_zeropage()
1121 if (ioctl(ufd, UFFDIO_ZEROPAGE, uffdio_zeropage)) { in retry_uffdio_zeropage()
1122 if (uffdio_zeropage->zeropage != -EEXIST) in retry_uffdio_zeropage()
1124 (int64_t)uffdio_zeropage->zeropage); in retry_uffdio_zeropage()
1127 (int64_t)uffdio_zeropage->zeropage); in retry_uffdio_zeropage()
1133 struct uffdio_zeropage uffdio_zeropage; in __uffdio_zeropage() local
1140 uffdio_zeropage.range.start = (unsigned long) area_dst + offset; in __uffdio_zeropage()
1141 uffdio_zeropage.range.len = page_size; in __uffdio_zeropage()
[all …]
/linux-6.1.9/fs/
Duserfaultfd.c1782 struct uffdio_zeropage uffdio_zeropage; in userfaultfd_zeropage() local
1783 struct uffdio_zeropage __user *user_uffdio_zeropage; in userfaultfd_zeropage()
1786 user_uffdio_zeropage = (struct uffdio_zeropage __user *) arg; in userfaultfd_zeropage()
1793 if (copy_from_user(&uffdio_zeropage, user_uffdio_zeropage, in userfaultfd_zeropage()
1795 sizeof(uffdio_zeropage)-sizeof(__s64))) in userfaultfd_zeropage()
1798 ret = validate_range(ctx->mm, uffdio_zeropage.range.start, in userfaultfd_zeropage()
1799 uffdio_zeropage.range.len); in userfaultfd_zeropage()
1803 if (uffdio_zeropage.mode & ~UFFDIO_ZEROPAGE_MODE_DONTWAKE) in userfaultfd_zeropage()
1807 ret = mfill_zeropage(ctx->mm, uffdio_zeropage.range.start, in userfaultfd_zeropage()
1808 uffdio_zeropage.range.len, in userfaultfd_zeropage()
[all …]
/linux-6.1.9/include/uapi/linux/
Duserfaultfd.h88 struct uffdio_zeropage)
265 struct uffdio_zeropage { struct