MyOS Kernel
kmalloc.h File Reference
#include <stddef.h>

Go to the source code of this file.

Functions

void * kmalloc (size_t size)
 
void kfree (void *mem)
 

Function Documentation

◆ kfree()

void kfree ( void *  mem)

Free a block in the kernel heap

Parameters
memThe address of the block

◆ kmalloc()

void* kmalloc ( size_t  size)

Allocate a block in the kernel heap

Parameters
sizeThe size of the block
Returns
the address of the block in the heap.