xref: /original-bsd/sys/sys/dmap.h (revision f238860a)
1 /*
2  * Copyright (c) 1982 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  *
6  *	@(#)dmap.h	6.3 (Berkeley) 06/08/85
7  */
8 
9 /*
10  * Definitions for the mapping of vitual swap
11  * space to the physical swap area - the disk map.
12  */
13 
14 #define	NDMAP 		38	/* size of the swap area map */
15 
16 struct	dmap
17 {
18 	swblk_t	dm_size;	/* current size used by process */
19 	swblk_t	dm_alloc;	/* amount of physical swap space allocated */
20 	swblk_t	dm_map[NDMAP];	/* first disk block number in each chunk */
21 };
22 #ifdef KERNEL
23 struct	dmap zdmap;
24 int	dmmin, dmmax, dmtext;
25 #endif
26 
27 /*
28  * The following structure is that ``returned''
29  * from a call to vstodb().
30  */
31 struct	dblock
32 {
33 	swblk_t	db_base;	/* base of physical contig drum block */
34 	swblk_t	db_size;	/* size of block */
35 };
36