#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
|
void * | kmalloc (size_t size) |
| Allocate a memory space for using in the kernel. More...
|
|
void | kfree (void *ptr) |
| Free the memory space pointed to by ptr. More...
|
|
unsigned long | heap_get_total_size (void) |
|
unsigned long | heap_get_free_size (void) |
|
void | heap_init (void) |
|
void * | __malloc (size_t size) |
|
void | __free (void *ptr) |
|
◆ DEF_KMALLOC_SLAB
#define DEF_KMALLOC_SLAB |
( |
|
_size | ) |
|
Value: { \
.size = _size, .name = "kmalloc-" #_size \
}
◆ kfree()
Free the memory space pointed to by ptr.
- Parameters
-
ptr | Pointer to the allocated memory. |
- Return values
-
◆ kmalloc()
void* kmalloc |
( |
size_t |
size | ) |
|
Allocate a memory space for using in the kernel.
- Parameters
-
size | The size of the memory in bytes. |
- Return values
-