Motr
M0
|
Go to the source code of this file.
Macros | |
#define | __MOTR_LIB_MEMORY_H__ |
#define | m0_free0(pptr) |
#define | M0_ALLOC_ARR(arr, nr) |
#define | M0_ALLOC_PTR(ptr) M0_ALLOC_ARR(ptr, 1) |
#define | M0_ALLOC_ARR_ALIGNED(arr, nr, shift) ((arr) = m0_alloc_aligned((nr) * sizeof ((arr)[0]), (shift))) |
Functions | |
void * | m0_alloc (size_t size) |
M0_INTERNAL void * | m0_alloc_nz (size_t size) |
void | m0_free (void *data) |
M0_INTERNAL void | m0_memory_pagein (void *addr, size_t size) |
M0_INTERNAL void * | m0_alloc_aligned (size_t size, unsigned shift) |
M0_INTERNAL void | m0_free_aligned (void *data, size_t size, unsigned shift) |
static bool | m0_addr_is_aligned (const void *addr, unsigned shift) |
M0_INTERNAL void * | m0_alloc_wired (size_t size, unsigned shift) |
M0_INTERNAL void | m0_free_wired (void *data, size_t size, unsigned shift) |
M0_INTERNAL size_t | m0_allocated (void) |
M0_INTERNAL size_t | m0_allocated_total (void) |
M0_INTERNAL size_t | m0_freed_total (void) |
M0_INTERNAL int | m0_pagesize_get (void) |
M0_INTERNAL int | m0_pageshift_get (void) |
M0_INTERNAL bool | m0_is_poisoned (const void *ptr) |
M0_INTERNAL int | m0_dont_dump (void *p, size_t size) |