ApertureOS
Functions
Kernel Memory Allocation

Functions

void kmalloc_init ()
 Initialize the kernel memory allocator. More...
 
void * kmalloc (size_t size)
 kernel malloc More...
 
void kfree (void *addr)
 kernel free More...
 
void kcompact ()
 Compact the kernel memory allocation table. More...
 

Detailed Description

Function Documentation

void kcompact ( )

Compact the kernel memory allocation table.

This shouldn't need to be called from outside

See also
kmalloc(), kfree()
void kfree ( void *  addr)

kernel free

Parameters
addrThe virtual address previously allocated by kmalloc
See also
kmalloc()
void* kmalloc ( size_t  size)

kernel malloc

Parameters
sizeThe size in bytes of the memory to allocate
Returns
The virtual address of the allocated space
See also
kfree()
void kmalloc_init ( )

Initialize the kernel memory allocator.

Requires that the physical memory manager and the virtual memory manager be initialized too

See also
kmalloc(), kfree()