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

Functions

void memRegionInsert (struct memregion *region, struct memregion **list)
 

Variables

struct memregion * regalloclist
 
struct memregion * regfreelist
 

Detailed Description

Insert a memory region into a list of memory regions (free or allocated).

Function Documentation

void memRegionInsert ( struct memregion *  region,
struct memregion **  list 
)

Insert a region into a region list. This will coalesce with neighboring regions if applicable (list is free list).

Parameters
regionRegion to insert.
listList to insert region in.