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