%H%->%G%
[unix-history] / usr / src / sys / sys / dmap.h
CommitLineData
f86df66c 1/* dmap.h 3.2 %G% */
863c693b
BJ
2
3/*
4 * Definitions for the mapping of vitual swap
5 * space to the physical swap area - the disk map.
6 */
7
8#define NDMAP 16 /* size of the swap area map */
9#define DMMIN 16 /* the initial block size in clicks */
10#define DMMAX 1024 /* max block size alloc on drum = .5M byte */
11
12struct dmap
13{
14 swblk_t dm_size; /* current size used by process */
15 swblk_t dm_alloc; /* amount of physical swap space allocated */
16 swblk_t dm_map[NDMAP]; /* first disk block number in each chunk */
17};
18#ifdef KERNEL
19struct dmap zdmap;
20#endif
21
22/*
23 * The following structure is that ``returned''
24 * from a call to vstodb().
25 */
26struct dblock
27{
28 swblk_t db_base; /* base of physical contig drum block */
29 swblk_t db_size; /* size of block */
30};