Lines Matching +full:close +full:- +full:range
1 // SPDX-License-Identifier: GPL-2.0
71 static int supported = -1; in pagemap_scan_supported()
74 if (supported != -1) in pagemap_scan_supported()
106 return page_entry_is(fd, start, "soft-dirty", in pagemap_is_softdirty()
126 /* If present (63th bit), PFN is at bit 0 -- 54. */ in pagemap_get_pfn()
129 return -1ul; in pagemap_get_pfn()
141 close(fd); in clear_softdirty()
162 if (fd == -1) in read_pmd_pagesize()
167 close(fd); in read_pmd_pagesize()
171 close(fd); in read_pmd_pagesize()
204 ret = snprintf(addr_pattern, MAX_LINE_LENGTH, "%08lx-", in __get_smap_entry()
236 uint64_t thp = -1; in __check_huge()
272 MAP_NORESERVE | MAP_PRIVATE, -1, 0) != ptr) in allocate_transhuge()
282 (uintptr_t)ptr >> (pshift() - 3)) != sizeof(ent)) in allocate_transhuge()
287 !(PAGEMAP_PFN(ent[0]) & ((1 << (HPAGE_SHIFT - pshift())) - 1))) in allocate_transhuge()
290 return -1; in allocate_transhuge()
328 if (entry->d_type != DT_DIR) in detect_hugetlb_page_sizes()
330 if (sscanf(entry->d_name, "hugepages-%zukB", &kb) != 1) in detect_hugetlb_page_sizes()
340 /* If `ioctls' non-NULL, the allowed ioctls will be returned into the var */
355 uffdio_register.range.start = (unsigned long)addr; in uffd_register_with_ioctls()
356 uffdio_register.range.len = len; in uffd_register_with_ioctls()
359 if (ioctl(uffd, UFFDIO_REGISTER, &uffdio_register) == -1) in uffd_register_with_ioctls()
360 ret = -errno; in uffd_register_with_ioctls()
376 struct uffdio_range range = { .start = (uintptr_t)addr, .len = len }; in uffd_unregister() local
379 if (ioctl(uffd, UFFDIO_UNREGISTER, &range) == -1) in uffd_unregister()
380 ret = -errno; in uffd_unregister()