Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields  

Process Struct Reference

The structure that defines a process. More...

#include <ToyProcess.h>

Collaboration diagram for Process:

Collaboration graph
[legend]

Data Fields

int ID
SegListsegments
 Memory segments.

SegListfreeheap
 Head of unused portions of heap.

SegListusedheap
 Used portions of heap.

SegListptr
 Pointer to previous spot in free list.

PageTablepagetable
 Process' page table when in paging mode.


Detailed Description

The structure that defines a process.

Contains a linked list of memory segments, linked list of space holes in the heap segment, a linked list of used space in the heap segment, and a pointer to the current space hole in the free list.

Definition at line 36 of file ToyProcess.h.


Field Documentation

struct SegList* Process::freeheap
 

Head of unused portions of heap.

Definition at line 42 of file ToyProcess.h.

Referenced by TMM_PagedAllocateProcess(), TMM_PagedTerminateProcess(), TMM_ReallocateHeap(), and TMM_TerminateProcess().

PageTable* Process::pagetable
 

Process' page table when in paging mode.

Definition at line 48 of file ToyProcess.h.

Referenced by TMM_AssignFrame(), TMM_FreeFrame(), TMM_GetPage(), TMM_MarkPageSwappedOut(), TMM_PagedAllocateProcess(), TMM_PagedTerminateProcess(), TMM_PrintPages(), and TMM_PrintPageTable().

struct SegList* Process::ptr
 

Pointer to previous spot in free list.

Definition at line 46 of file ToyProcess.h.

Referenced by TMM_PagedAllocateProcess().

struct SegList* Process::segments
 

Memory segments.

Definition at line 40 of file ToyProcess.h.

Referenced by TMM_PagedAllocateProcess(), TMM_PagedTerminateProcess(), TMM_PrintProcessMemory(), TMM_PrintProcessTable(), TMM_StoreInteger(), TMM_StoreString(), and TMM_TerminateProcess().

struct SegList* Process::usedheap
 

Used portions of heap.

Definition at line 44 of file ToyProcess.h.

Referenced by TMM_AllocateHeap(), TMM_FreeHeap(), TMM_PagedAllocateProcess(), TMM_PagedTerminateProcess(), TMM_PrintHeap(), TMM_PrintProcessMemory(), TMM_ReallocateHeap(), TMM_StoreHeapInteger(), TMM_StoreHeapString(), and TMM_TerminateProcess().


The documentation for this struct was generated from the following file:
Generated on Fri Apr 4 14:29:07 2003 for ToyMem by doxygen1.3-rc3