|
PatchworkOS
69292a3
A non-POSIX operating system.
|
#include <kernel/cpu/cpu.h>#include <kernel/cpu/interrupt.h>#include <kernel/log/log.h>#include <kernel/mem/cache.h>#include <kernel/mem/pmm.h>#include <errno.h>#include <kernel/mem/vmm.h>#include <kernel/sync/lock.h>#include <stdlib.h>#include <sys/list.h>#include <sys/math.h>Go to the source code of this file.
Functions | |
| static cache_slab_t * | cache_slab_new (cache_t *cache) |
| static void | cache_slab_destroy (cache_slab_t *slab) |
| static void * | cache_slab_alloc (cache_slab_t *slab) |
| static void | cache_slab_free (cache_slab_t *slab, void *ptr) |
| static void | cache_precalc_layout (cache_t *cache) |
| void * | cache_alloc (cache_t *cache) |
| Allocate an object from the cache. | |
| void | cache_free (void *ptr) |
| Free an object back to its cache. | |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |