Lines Matching refs:size
46 vmem_mmap_alloc(vmem_t *src, size_t size, int vmflags)
51 ret = vmem_alloc(src, size, vmflags);
53 mmap(ret, size, ALLOC_PROT, ALLOC_FLAGS | MAP_FIXED, -1, 0) ==
55 vmem_free(src, ret, size);
68 vmem_mmap_free(vmem_t *src, void *addr, size_t size)
71 (void) mmap(addr, size, FREE_PROT, FREE_FLAGS | MAP_FIXED, -1, 0);
72 vmem_free(src, addr, size);
77 vmem_mmap_top_alloc(vmem_t *src, size_t size, int vmflags)
83 ret = vmem_alloc(src, size, VM_NOSLEEP);
92 buf = mmap((void *)CHUNKSIZE, size, FREE_PROT, FREE_FLAGS | MAP_ALIGN,
96 ret = _vmem_extend_alloc(src, buf, size, size, vmflags);
100 (void) munmap(buf, size);