/*	@(#)kmem.h	13.1 (RC International) 91/02/01 	*/

/* needs <sys/param.h> */

struct	kmem
{
	int	ufd;		/* UPU memory access file descriptor */
	int	rfd;		/* RPU memory access file descriptor */
	int	pfd;		/* Physical memory access file descriptor */
	bool_t	alive;		/* Live system or coredump file */
	int	pid;		/* for kmem_process if not alive */
	caddr_t	proc;		/* base physical addr of process table */
	int	nproc;		/* number of entries in the process table */
	int	ptes[UPAGES];	/* physical page table entries: current UAREA */
	caddr_t	physmem;	/* size of physical main memory */
				/* next fields for coredumps only */
    	caddr_t	dump1_start;	/* Start addr. of 1. part of coredump */
    	u_int	dump1_size;	/* Bytecnt. of 1. part of coredump */
    	caddr_t	dump2_start;	/* Start addr. of 2. part of coredump */
    	u_int	dump2_size;	/* Bytecnt. of 2. part of coredump */
};

struct	kmem	*kmem_open();

/* kmem_open flags */
#define	KMEM_FILEFIRST		1
