summaryrefslogtreecommitdiff
path: root/minix/servers/vm/phys_region.h
blob: ced41f20840f8c76952224625eb8e030bb251d89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PHYS_REGION_H
#define PHYS_REGION_H 1

#include <stddef.h>

#include "memtype.h"

typedef struct phys_region {
	struct phys_block	*ph;
	struct vir_region	*parent; /* vir_region or NULL if yielded */
	vir_bytes		offset;	/* offset from start of vir region */
#if SANITYCHECKS
	int			written;	/* written to pagetable */
#endif

	/* what kind of memory is it? */
	mem_type_t              *memtype;

	/* list of phys_regions that reference the same phys_block */
	struct phys_region	*next_ph_list;	
} phys_region_t;

#endif