xref: /original-bsd/sys/ufs/mfs/mfsnode.h (revision e61f0abc)
1 /*
2  * Copyright (c) 1989 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)mfsnode.h	7.2 (Berkeley) 06/28/90
8  */
9 
10 /*
11  * This structure defines the control data for the memory
12  * based file system.
13  */
14 
15 struct mfsnode {
16 	struct	vnode *mfs_vnode;	/* vnode associated with this mfsnode */
17 	caddr_t	mfs_baseoff;		/* base of file system in memory */
18 	long	mfs_size;		/* size of memory file system */
19 	pid_t	mfs_pid;		/* supporting process pid */
20 	struct	buf *mfs_buflist;	/* list of I/O requests */
21 	long	mfs_spare[4];
22 };
23 
24 /*
25  * Convert between mfsnode pointers and vnode pointers
26  */
27 #define VTOMFS(vp)	((struct mfsnode *)(vp)->v_data)
28 #define MFSTOV(mfsp)	((mfsp)->mfs_vnode)
29