#include <ToyMem.h>
Collaboration diagram for ToyMM:

Data Fields | |
| Process * | processList [MAX_PROCESSES] |
| Array of processes. | |
| ToyMem * | mem |
| Array of memory elements. | |
| int | memSize |
| Size of memory element array. | |
| SegList * | memFree |
| Linked list of free space holes. | |
| int | pageSize |
| Page size. 0 in legacy mode. | |
| InvPageTable * | invPageTable |
| Inverted page table. NULL in legacy mode. | |
| int | page |
| Current position of linear scanning pointer. | |
| FILE * | swap |
| Pointer to swap file, if any. | |
| int | watchPaging |
Contains an array of pointers to processes(NULL denotes no process), an array of memory elements, a linked list of free space, and a member describing the size of the memory array.
Definition at line 51 of file ToyMem.h.
|
|
Inverted page table. NULL in legacy mode.
Definition at line 64 of file ToyMem.h. Referenced by TMM_AssignFrame(), TMM_Create(), TMM_EnablePaging(), TMM_FindFreeFrame(), TMM_FrameFree(), TMM_Free(), TMM_FreeFrame(), TMM_GetFrame(), and TMM_PagingEnabled(). |
|
|
Array of memory elements.
Definition at line 56 of file ToyMem.h. Referenced by TMM_Create(), TMM_EmptyFrame(), TMM_Free(), TMM_StoreHeapInteger(), TMM_StoreHeapString(), TMM_StoreInteger(), and TMM_StoreString(). |
|
|
Linked list of free space holes.
Definition at line 60 of file ToyMem.h. Referenced by TMM_Create(), TMM_EnablePaging(), and TMM_Free(). |
|
|
Size of memory element array.
Definition at line 58 of file ToyMem.h. Referenced by TMM_Create(), TMM_EnablePaging(), TMM_GetNumPages(), TMM_ParseLine(), TMM_PrintAllMemory(), and TMM_SwapCreate(). |
|
|
Current position of linear scanning pointer.
Definition at line 67 of file ToyMem.h. Referenced by TMM_Create(), TMM_EnablePaging(), TMM_FindFreeFrame(), and TMM_IncrementLinearScan(). |
|
|
Page size. 0 in legacy mode.
Definition at line 62 of file ToyMem.h. Referenced by TMM_Create(), TMM_EmptyFrame(), TMM_EnablePaging(), TMM_GetFramedSize(), TMM_GetNumFrames(), TMM_GetNumPages(), TMM_GetRealAddress(), and TMM_PagingEnabled(). |
|
|
Array of processes.
Definition at line 54 of file ToyMem.h. Referenced by TMM_AllocateHeap(), TMM_Create(), TMM_EnablePaging(), TMM_Free(), TMM_FreeHeap(), TMM_MarkPageSwappedOut(), TMM_PagedAllocateProcess(), TMM_PagedTerminateProcess(), TMM_PrintHeap(), TMM_PrintPages(), TMM_PrintPageTable(), TMM_PrintProcessMemory(), TMM_PrintProcessTable(), TMM_ReallocateHeap(), TMM_StoreHeapInteger(), TMM_StoreHeapString(), TMM_StoreInteger(), TMM_StoreString(), and TMM_TerminateProcess(). |
|
|
Pointer to swap file, if any.
Definition at line 69 of file ToyMem.h. Referenced by TMM_Create(), TMM_SwapCreate(), and TMM_SwapDestroy(). |
1.3-rc3