38 #ifndef included_vm_unix_h 39 #define included_vm_unix_h 51 flags |= MAP_ANONYMOUS;
54 mmap_addr = mmap (0, size, PROT_READ | PROT_WRITE, flags, -1, 0);
55 if (mmap_addr == (
void *) -1)
62 { munmap (addr, size); }
73 mmap_addr = mmap (addr, size, PROT_NONE, flags, -1, 0);
74 if (mmap_addr == (
void *) -1)
85 mmap_addr = mmap (addr, size, (PROT_READ | PROT_WRITE), flags, -1, 0);
86 if (mmap_addr == (
void *) -1)
always_inline void * clib_mem_vm_unmap(void *addr, uword size)
always_inline void * clib_mem_vm_map(void *addr, uword size)
always_inline void * clib_mem_vm_alloc(uword size)
always_inline void clib_mem_vm_free(void *addr, uword size)