Searched refs:uffd_zeropage (Results 1 – 1 of 1) sorted by relevance
152 struct uffdio_zeropage uffd_zeropage; in KernelSupportsUffd() local153 uffd_zeropage.mode = UFFDIO_ZEROPAGE_MODE_MMAP_TRYLOCK; in KernelSupportsUffd()154 uffd_zeropage.range.start = reinterpret_cast<uintptr_t>(mem); in KernelSupportsUffd()155 uffd_zeropage.range.len = page_size; in KernelSupportsUffd()156 uffd_zeropage.zeropage = 0; in KernelSupportsUffd()158 CHECK_EQ(ioctl(fd, UFFDIO_ZEROPAGE, &uffd_zeropage), -1); in KernelSupportsUffd()163 if (uffd_zeropage.zeropage == 0 && errno == EINVAL) { in KernelSupportsUffd()2108 struct uffdio_zeropage uffd_zeropage; in ZeropageIoctl() local2110 uffd_zeropage.range.start = reinterpret_cast<uintptr_t>(addr); in ZeropageIoctl()2111 uffd_zeropage.range.len = length; in ZeropageIoctl()[all …]