Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/system/getmem.c File Reference

#include <kernel.h>
#include <memory.h>

Include dependency graph for getmem.c:

Go to the source code of this file.

Functions

void * getmem (ulong nbytes)


Detailed Description

getmem

Id
getmem.c 217 2007-07-11 01:03:18Z brylow

Definition in file getmem.c.


Function Documentation

void* getmem ( ulong  nbytes  ) 

Allocate heap storage, returning pointer to assigned memory region.

Parameters:
nbytes number of bytes requested
Returns:
pointer to region on success, SYSERR on failure

Definition at line 17 of file getmem.c.

References disable(), freelist, memblock::length, memblock::next, NULL, restore(), roundmb, and SYSERR.

Referenced by create().


Generated on Thu Oct 9 22:35:02 2008 for xinu by  doxygen 1.5.5