Lines Matching +full:right +full:- +full:aligned
81 ret = mmap(addr, size, prot, mmap_flags, -1, 0); in os_pages_map()
89 * We succeeded in mapping memory, but not in the right place. in os_pages_map()
117 size_t trailsize = alloc_size - leadsize - size; in os_pages_trim()
137 if (munmap(addr, size) == -1) in os_pages_unmap()
158 size_t alloc_size = size + alignment - os_page; in pages_map_slow()
159 /* Beware size_t wrap-around. */ in pages_map_slow()
171 - (uintptr_t)pages; in pages_map_slow()
203 flags |= MAP_ALIGNED(alignment_bits - 1); in pages_map()
206 void *ret = mmap(addr, size, prot, flags, -1, 0); in pages_map()
217 * hard to efficiently create aligned mappings. The reliable, but in pages_map()
218 * slow method is to create a mapping that is over-sized, then trim the in pages_map()
223 * Optimistically try mapping precisely the right amount before falling in pages_map()
266 -1, 0); in pages_commit_impl()
272 * We succeeded in mapping memory, but not in the right in pages_commit_impl()
341 /* Try to overlay a new demand-zeroed mapping. */ in pages_purge_forced()
349 pages_huge_impl(void *addr, size_t size, bool aligned) { in pages_huge_impl() argument
350 if (aligned) { in pages_huge_impl()
372 pages_nohuge_impl(void *addr, size_t size, bool aligned) { in pages_nohuge_impl() argument
373 if (aligned) { in pages_nohuge_impl()
432 if (result == -1) { in os_page_detect()
493 if (fd != -1) { in os_overcommits_proc()
504 if (fd != -1) { in os_overcommits_proc()
513 if (fd != -1) { in os_overcommits_proc()
519 if (fd == -1) { in os_overcommits_proc()
583 if (fd == -1) { in init_thp_state()