can't get_block(NO_DEV) any more
[minix.git] / servers / vm / phys_region.h
blobca68fa9dbfe92f70f232854d1cd5e5ad1d07e2a5
1 #ifndef PHYS_REGION_H
2 #define PHYS_REGION_H 1
4 #include <stddef.h>
6 #include "memtype.h"
8 typedef struct phys_region {
9 struct phys_block *ph;
10 struct vir_region *parent; /* vir_region or NULL if yielded */
11 vir_bytes offset; /* offset from start of vir region */
12 #if SANITYCHECKS
13 int written; /* written to pagetable */
14 #endif
16 mem_type_t *memtype;
18 /* list of phys_regions that reference the same phys_block */
19 struct phys_region *next_ph_list;
21 /* AVL fields */
22 struct phys_region *less, *greater;
23 int factor;
24 } phys_region_t;
26 #endif