Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions
memRegionSplit.c File Reference
#include <safemem.h>
#include <mips.h>

Functions

struct memregion * memRegionSplit (struct memregion *region, uint length)
 

Detailed Description

Split a region of memory into two parts.

Function Documentation

struct memregion* memRegionSplit ( struct memregion *  region,
uint  length 
)

Given a region, split into two separate chunks. Passed region will be of size length and remainder will be returned.

Parameters
regionregion to split
lengthlength of region after split
Returns
remainder of original region after split