Home
last modified time | relevance | path

Searched refs:uffdio_api (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/tools/testing/selftests/vm/
Dhugepage-mremap.c61 struct uffdio_api uffdio_api; in register_region_with_uffd() local
72 uffdio_api.api = UFFD_API; in register_region_with_uffd()
73 uffdio_api.features = 0; in register_region_with_uffd()
74 if (ioctl(uffd, UFFDIO_API, &uffdio_api) == -1) { in register_region_with_uffd()
Duserfaultfd.c453 struct uffdio_api uffdio_api; in userfaultfd_open() local
465 uffdio_api.api = UFFD_API; in userfaultfd_open()
466 uffdio_api.features = *features; in userfaultfd_open()
467 if (ioctl(uffd, UFFDIO_API, &uffdio_api)) in userfaultfd_open()
470 if (uffdio_api.api != UFFD_API) in userfaultfd_open()
471 err("UFFDIO_API error: %" PRIu64, (uint64_t)uffdio_api.api); in userfaultfd_open()
473 *features = uffdio_api.features; in userfaultfd_open()
/linux-6.1.9/tools/testing/selftests/powerpc/tm/
Dtm-signal-pagefault.c141 struct uffdio_api uffdio_api; in setup_uf_mem() local
153 uffdio_api.api = UFFD_API; in setup_uf_mem()
154 uffdio_api.features = 0; in setup_uf_mem()
155 if (ioctl(uffd, UFFDIO_API, &uffdio_api) == -1) { in setup_uf_mem()
/linux-6.1.9/tools/testing/selftests/kvm/
Ddemand_paging_test.c221 struct uffdio_api uffdio_api; in setup_demand_paging() local
246 uffdio_api.api = UFFD_API; in setup_demand_paging()
247 uffdio_api.features = 0; in setup_demand_paging()
248 ret = ioctl(uffd, UFFDIO_API, &uffdio_api); in setup_demand_paging()
/linux-6.1.9/fs/
Duserfaultfd.c1960 struct uffdio_api uffdio_api; in userfaultfd_api() local
1967 if (copy_from_user(&uffdio_api, buf, sizeof(uffdio_api))) in userfaultfd_api()
1970 features = uffdio_api.features & UFFD_API_FEATURES; in userfaultfd_api()
1975 uffdio_api.features = UFFD_API_FEATURES; in userfaultfd_api()
1977 uffdio_api.features &= in userfaultfd_api()
1981 uffdio_api.features &= ~UFFD_FEATURE_PAGEFAULT_FLAG_WP; in userfaultfd_api()
1984 uffdio_api.features &= ~UFFD_FEATURE_WP_HUGETLBFS_SHMEM; in userfaultfd_api()
1986 uffdio_api.ioctls = UFFD_API_IOCTLS; in userfaultfd_api()
1988 if (copy_to_user(buf, &uffdio_api, sizeof(uffdio_api))) in userfaultfd_api()
2001 memset(&uffdio_api, 0, sizeof(uffdio_api)); in userfaultfd_api()
[all …]
/linux-6.1.9/include/uapi/linux/
Duserfaultfd.h78 struct uffdio_api)
149 struct uffdio_api { struct
/linux-6.1.9/Documentation/admin-guide/mm/
Duserfaultfd.rst89 ``UFFDIO_API`` ioctl specifying a ``uffdio_api.api`` value set to ``UFFD_API`` (or
91 userland intends to speak on the ``UFFD`` and the ``uffdio_api.features``
93 requested ``uffdio_api.api`` is spoken also by the running kernel and the
95 ``uffdio_api.features`` and ``uffdio_api.ioctls`` two 64bit bitmasks of
99 The ``uffdio_api.features`` bitmask returned by the ``UFFDIO_API`` ioctl
123 ioctl should be invoked (if present in the returned ``uffdio_api.ioctls``
295 bits in ``uffdio_api.features`` passed to ``UFFDIO_API`` ioctl:
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dbpf_mod_race.c90 struct uffdio_api uffd_api = {}; in test_setup_uffd()