|
|
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: #ifdef BIGMEM
7: #define NDMAP 64 /* size of the swap area map */
8: #else
9: #define NDMAP 32 /* size of the swap area map */
10: #endif
11: #define DMMIN 32 /* the initial block size in clicks */
12: #define DMMAX 1024 /* max block size alloc on drum = .5M byte */
13: #define DMTEXT 1024 /* size of blocks of pure text = .5M byte */
14:
15: struct dmap
16: {
17: swblk_t dm_size; /* current size used by process */
18: swblk_t dm_alloc; /* amount of physical swap space allocated */
19: swblk_t dm_map[NDMAP]; /* first disk block number in each chunk */
20: };
21: #ifdef KERNEL
22: struct dmap zdmap;
23: #endif
24:
25: /*
26: * The following structure is that ``returned''
27: * from a call to vstodb().
28: */
29: struct dblock
30: {
31: swblk_t db_base; /* base of physical contig drum block */
32: swblk_t db_size; /* size of block */
33: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.