MOS Source Code
|
Go to the source code of this file.
Classes | |
struct | slab_t |
Functions | |
__BEGIN_DECLS void * | slab_alloc (size_t size) |
Allocate a block of memory from the slab allocator. | |
void * | slab_calloc (size_t nmemb, size_t size) |
Allocate a block of memory from the slab allocator and zero it. | |
void * | slab_realloc (void *addr, size_t size) |
Reallocate a block of memory from the slab allocator. | |
void | slab_free (const void *addr) |
Free a block of memory from the slab allocator. | |
slab_t * | kmemcache_create (const char *name, size_t ent_size) |
void * | kmemcache_alloc (slab_t *slab) |
__BEGIN_DECLS void * slab_alloc | ( | size_t | size | ) |
Allocate a block of memory from the slab allocator.
size |
Definition at line 130 of file slab.c.
Referenced by operator new(), operator new[](), slab_calloc(), and slab_realloc().
Free a block of memory from the slab allocator.
addr |
Definition at line 200 of file slab.c.
Referenced by slab_realloc().
Definition at line 219 of file slab.c.
Referenced by setup_xsave_slab().
Definition at line 227 of file slab.c.
Referenced by kmemcache_create(), and slab_alloc().