#include <sys/types.h>
#include <sys/mman.h>
#include "abti.h"
Go to the source code of this file.
|
static void * | mmap_regular (size_t size) |
|
static void * | mmap_hugepage (size_t size) |
|
static void | mmap_free (void *p_page, size_t size) |
|
int | ABTU_is_supported_largepage_type (size_t size, size_t alignment_hint, ABTU_MEM_LARGEPAGE_TYPE requested) |
|
ABTU_ret_err int | ABTU_alloc_largepage (size_t size, size_t alignment_hint, const ABTU_MEM_LARGEPAGE_TYPE *requested_types, int num_requested_types, ABTU_MEM_LARGEPAGE_TYPE *p_actual, void **p_ptr) |
|
void | ABTU_free_largepage (void *ptr, size_t size, ABTU_MEM_LARGEPAGE_TYPE type) |
|
◆ ABTU_LP_PROTS
#define ABTU_LP_PROTS (PROT_READ | PROT_WRITE) |
◆ ABTU_LP_USE_HUGEPAGE
#define ABTU_LP_USE_HUGEPAGE 0 |
◆ ABTU_LP_USE_MMAP
#define ABTU_LP_USE_MMAP 0 |
◆ ABTU_alloc_largepage()
◆ ABTU_free_largepage()
◆ ABTU_is_supported_largepage_type()
◆ mmap_free()
static void mmap_free |
( |
void * |
p_page, |
|
|
size_t |
size |
|
) |
| |
|
static |
◆ mmap_hugepage()
static void* mmap_hugepage |
( |
size_t |
size | ) |
|
|
static |
◆ mmap_regular()
static void* mmap_regular |
( |
size_t |
size | ) |
|
|
static |