Embedded Xinu Operating System
An ongoing research project and educational operating system.
|
#include <safemem.h>
#include <thread.h>
#include <stdlib.h>
Functions | |
struct memregion * | memRegionAlloc (uint nbytes) |
User/kernel agnostic memory allocator. Simply provides a pointer to memory that belongs to the current thread.
struct memregion* memRegionAlloc | ( | uint | nbytes | ) |
Attempt to allocate a region of at least nbytes to the current thread.
nbytes | number of byte to allocate |