Searched refs:uffdio_api (Results 1 – 7 of 7) sorted by relevance
/linux/tools/testing/selftests/vm/ |
A D | hugepage-mremap.c | 55 struct uffdio_api uffdio_api; in register_region_with_uffd() local 66 uffdio_api.api = UFFD_API; in register_region_with_uffd() 67 uffdio_api.features = 0; in register_region_with_uffd() 68 if (ioctl(uffd, UFFDIO_API, &uffdio_api) == -1) { in register_region_with_uffd()
|
A D | userfaultfd.c | 379 struct uffdio_api uffdio_api; in userfaultfd_open() local 386 uffdio_api.api = UFFD_API; in userfaultfd_open() 387 uffdio_api.features = *features; in userfaultfd_open() 388 if (ioctl(uffd, UFFDIO_API, &uffdio_api)) in userfaultfd_open() 391 if (uffdio_api.api != UFFD_API) in userfaultfd_open() 392 err("UFFDIO_API error: %" PRIu64, (uint64_t)uffdio_api.api); in userfaultfd_open() 394 *features = uffdio_api.features; in userfaultfd_open()
|
/linux/tools/testing/selftests/powerpc/tm/ |
A D | tm-signal-pagefault.c | 141 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/tools/testing/selftests/kvm/ |
A D | demand_paging_test.c | 223 struct uffdio_api uffdio_api; in setup_demand_paging() local 247 uffdio_api.api = UFFD_API; in setup_demand_paging() 248 uffdio_api.features = 0; in setup_demand_paging() 249 TEST_ASSERT(ioctl(uffd, UFFDIO_API, &uffdio_api) != -1, in setup_demand_paging() 251 (uint64_t)uffdio_api.api); in setup_demand_paging()
|
/linux/fs/ |
A D | userfaultfd.c | 1927 struct uffdio_api uffdio_api; in userfaultfd_api() local 1934 if (copy_from_user(&uffdio_api, buf, sizeof(uffdio_api))) in userfaultfd_api() 1936 features = uffdio_api.features; in userfaultfd_api() 1938 if (uffdio_api.api != UFFD_API || (features & ~UFFD_API_FEATURES)) in userfaultfd_api() 1944 uffdio_api.features = UFFD_API_FEATURES; in userfaultfd_api() 1946 uffdio_api.features &= in userfaultfd_api() 1950 uffdio_api.features &= ~UFFD_FEATURE_PAGEFAULT_FLAG_WP; in userfaultfd_api() 1952 uffdio_api.ioctls = UFFD_API_IOCTLS; in userfaultfd_api() 1954 if (copy_to_user(buf, &uffdio_api, sizeof(uffdio_api))) in userfaultfd_api() 1967 memset(&uffdio_api, 0, sizeof(uffdio_api)); in userfaultfd_api() [all …]
|
/linux/include/uapi/linux/ |
A D | userfaultfd.h | 71 struct uffdio_api) 142 struct uffdio_api { struct
|
/linux/Documentation/admin-guide/mm/ |
A D | userfaultfd.rst | 54 ``UFFDIO_API`` ioctl specifying a ``uffdio_api.api`` value set to ``UFFD_API`` (or 56 userland intends to speak on the ``UFFD`` and the ``uffdio_api.features`` 58 requested ``uffdio_api.api`` is spoken also by the running kernel and the 60 ``uffdio_api.features`` and ``uffdio_api.ioctls`` two 64bit bitmasks of 64 The ``uffdio_api.features`` bitmask returned by the ``UFFDIO_API`` ioctl 88 ioctl should be invoked (if present in the returned ``uffdio_api.ioctls`` 260 bits in ``uffdio_api.features`` passed to ``UFFDIO_API`` ioctl:
|
Completed in 19 milliseconds