#include <sys/types.h>
#include <sys/vmem.h>
#include <stdlib.h>
Go to the source code of this file.
|
| void * | umem_alloc (size_t, int) |
| |
| void * | umem_alloc_align (size_t, size_t, int) |
| |
| void * | umem_zalloc (size_t, int) |
| |
| void | umem_free (void *, size_t) |
| |
| void | umem_free_align (void *, size_t) |
| |
| void | umem_nofail_callback (umem_nofail_callback_t *) |
| |
| umem_cache_t * | umem_cache_create (char *, size_t, size_t, umem_constructor_t *, umem_destructor_t *, umem_reclaim_t *, void *, vmem_t *, int) |
| |
| void | umem_cache_destroy (umem_cache_t *) |
| |
| void * | umem_cache_alloc (umem_cache_t *, int) |
| |
| void | umem_cache_free (umem_cache_t *, void *) |
| |
| void | umem_reap (void) |
| |
◆ UMC_NODEBUG
| #define UMC_NODEBUG 0x00020000 |
◆ UMC_NOHASH
| #define UMC_NOHASH 0x00080000 |
◆ UMC_NOMAGAZINE
| #define UMC_NOMAGAZINE 0x00040000 |
◆ UMC_NOTOUCH
| #define UMC_NOTOUCH 0x00010000 |
◆ UMEM_CALLBACK_EXIT
| #define UMEM_CALLBACK_EXIT |
( |
|
status | ) |
(0x100 | ((status) & 0xFF)) |
◆ UMEM_CALLBACK_RETRY
| #define UMEM_CALLBACK_RETRY 0 |
◆ UMEM_DEFAULT
| #define UMEM_DEFAULT 0x0000 /* normal -- may fail */ |
◆ UMEM_FLAGS
| #define UMEM_FLAGS 0xffff /* all settable umem flags */ |
◆ UMEM_NOFAIL
| #define UMEM_NOFAIL 0x0100 /* Never fails -- may call exit(2) */ |
◆ umem_cache_t
◆ umem_constructor_t
| typedef int umem_constructor_t(void *, void *, int) |
◆ umem_destructor_t
| typedef void umem_destructor_t(void *, void *) |
◆ umem_nofail_callback_t
| typedef int umem_nofail_callback_t(void) |
◆ umem_reclaim_t
| typedef void umem_reclaim_t(void *) |
◆ umem_alloc()
| void* umem_alloc |
( |
size_t |
, |
|
|
int |
|
|
) |
| |
◆ umem_alloc_align()
| void* umem_alloc_align |
( |
size_t |
, |
|
|
size_t |
, |
|
|
int |
|
|
) |
| |
◆ umem_cache_alloc()
◆ umem_cache_create()
References ASSERT, P2NPHASE, thr_self, UMC_INTERNAL, UMC_QCACHE, UMEM_CACHE_SIZE, UMEM_CPU_CACHE_SIZE, umem_init(), umem_init_thr, umem_max_ncpus, UMEM_READY, and umem_ready.
◆ umem_cache_destroy()
◆ umem_cache_free()
◆ umem_free()
| void umem_free |
( |
void * |
, |
|
|
size_t |
|
|
) |
| |
◆ umem_free_align()
| void umem_free_align |
( |
void * |
, |
|
|
size_t |
|
|
) |
| |
◆ umem_nofail_callback()
◆ umem_reap()
◆ umem_zalloc()
| void* umem_zalloc |
( |
size_t |
, |
|
|
int |
|
|
) |
| |