2020-07-25 16:54:37 -05:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
*/
|
|
|
|
|
2019-03-23 07:30:00 -05:00
|
|
|
#ifndef KMALLOC_H
|
|
|
|
#define KMALLOC_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2020-07-25 16:54:37 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Allocate a block in the kernel heap
|
|
|
|
* \param size The size of the block
|
|
|
|
* \return the address of the block in the heap.
|
|
|
|
*/
|
2019-03-23 07:30:00 -05:00
|
|
|
void* kmalloc(size_t size);
|
2020-07-25 16:54:37 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Free a block in the kernel heap
|
|
|
|
* \param mem The address of the block
|
|
|
|
*/
|
2019-03-23 07:30:00 -05:00
|
|
|
void kfree(void* mem);
|
|
|
|
|
|
|
|
#endif
|