|
CS350 COS
COS
|
#include <stdbool.h>#include <stdint.h>#include <sys/kconfig.h>#include <sys/kassert.h>#include <sys/kdebug.h>#include <sys/kmem.h>#include <machine/amd64.h>#include <machine/amd64op.h>#include <machine/pmap.h>#include <machine/mp.h>Go to the source code of this file.
Data Structures | |
| struct | XMem |
Macros | |
| #define | MAX_XMEM_REGIONS 1024 |
Typedefs | |
| typedef struct XMem | XMem |
Functions | |
| void | XMem_Init () |
| XMem * | XMem_New () |
| void | XMem_Destroy (XMem *xmem) |
| uintptr_t | XMem_GetBase (XMem *xmem) |
| uintptr_t | XMem_GetLength (XMem *xmem) |
| bool | XMem_Allocate (XMem *xmem, uintptr_t length) |
| static void | Debug_XMemStats (int argc, const char *argv[]) |
| REGISTER_DBGCMD (xmemstats, "XMem statistics", Debug_XMemStats) | |
Variables | |
| XMem | regions [MAX_XMEM_REGIONS] |
| struct XMem |
|
static |
| REGISTER_DBGCMD | ( | xmemstats | , |
| "XMem statistics" | , | ||
| Debug_XMemStats | |||
| ) |
Definition at line 92 of file xmem.c.
| void XMem_Destroy | ( | XMem * | xmem | ) |
Definition at line 63 of file xmem.c.
| void XMem_Init | ( | ) |
| XMem * XMem_New | ( | ) |
| XMem regions[MAX_XMEM_REGIONS] |