|
|
1.1 ! root 1: /* ! 2: * Definitions for the mapping of vitual swap ! 3: * space to the physical swap area - the disk map. ! 4: */ ! 5: ! 6: #define NDMAP 64 /* size of the swap area map */ ! 7: ! 8: struct dmap ! 9: { ! 10: swblk_t dm_size; /* current size used by process */ ! 11: swblk_t dm_alloc; /* amount of physical swap space allocated */ ! 12: swblk_t dm_map[NDMAP]; /* first disk block number in each chunk */ ! 13: }; ! 14: #ifdef KERNEL ! 15: extern struct dmap zdmap; ! 16: extern int dmmin; /* size in clicks of dm_map[0] */ ! 17: extern int dmmax; /* max size of swap alloc, in clicks */ ! 18: #endif ! 19: ! 20: /* ! 21: * The following structure is that ``returned'' ! 22: * from a call to vstodb(). ! 23: */ ! 24: struct dblock ! 25: { ! 26: swblk_t db_base; /* base of physical contig drum block */ ! 27: swblk_t db_size; /* size of block */ ! 28: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.