Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields  

ToyProcess.h

00001 /***************************************************************************
00002                           ToyProcess.h  -  Defines the Process
00003     structure.
00004                              -------------------
00005     begin                : Sat Jan 25 2003
00006     copyright            : (C) 2003 by Tyler Montbriand
00007     student #            : 200200370
00008     class                : CS330
00009     email                : monttyle@heavyspace.ca 
00010 ***************************************************************************/
00011 
00012 #ifndef __TOYPROCESS_H__
00013 #define __TOYPROCESS_H__
00014 
00015 #ifdef __cplusplus
00016   extern "C" {
00017 #endif/*__cplusplus*/
00018 
00020 typedef struct PageTable
00021 {
00023   int frame;
00025   int paged;
00026 } PageTable;
00027 
00028 
00036 typedef struct Process
00037 {
00038   int ID;
00040   struct SegList      *segments;
00042   struct SegList      *freeheap;
00044   struct SegList      *usedheap;
00046   struct SegList      *ptr;
00048   PageTable            *pagetable;
00049 } Process;
00050 
00051 #ifdef __cplusplus
00052   }
00053 #endif/*__cplusplus*/
00054 
00055 #endif/*__TOYPROCESS_H__*/

Generated on Fri Apr 4 14:29:07 2003 for ToyMem by doxygen1.3-rc3