xref: /csrg-svn/sys/ufs/mfs/mfsnode.h (revision 39388)
1*39388Smckusick /*
2*39388Smckusick  * Copyright (c) 1989 The Regents of the University of California.
3*39388Smckusick  * All rights reserved.
4*39388Smckusick  *
5*39388Smckusick  * Redistribution and use in source and binary forms are permitted
6*39388Smckusick  * provided that the above copyright notice and this paragraph are
7*39388Smckusick  * duplicated in all such forms and that any documentation,
8*39388Smckusick  * advertising materials, and other materials related to such
9*39388Smckusick  * distribution and use acknowledge that the software was developed
10*39388Smckusick  * by the University of California, Berkeley.  The name of the
11*39388Smckusick  * University may not be used to endorse or promote products derived
12*39388Smckusick  * from this software without specific prior written permission.
13*39388Smckusick  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14*39388Smckusick  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15*39388Smckusick  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16*39388Smckusick  *
17*39388Smckusick  *	@(#)mfsnode.h	7.1 (Berkeley) 10/24/89
18*39388Smckusick  */
19*39388Smckusick 
20*39388Smckusick /*
21*39388Smckusick  * This structure defines the control data for the memory
22*39388Smckusick  * based file system.
23*39388Smckusick  */
24*39388Smckusick 
25*39388Smckusick struct mfsnode {
26*39388Smckusick 	struct	vnode *mfs_vnode;	/* vnode associated with this mfsnode */
27*39388Smckusick 	caddr_t	mfs_baseoff;		/* base of file system in memory */
28*39388Smckusick 	long	mfs_size;		/* size of memory file system */
29*39388Smckusick 	pid_t	mfs_pid;		/* supporting process pid */
30*39388Smckusick 	struct	buf *mfs_buflist;	/* list of I/O requests */
31*39388Smckusick 	long	mfs_spare[4];
32*39388Smckusick };
33*39388Smckusick 
34*39388Smckusick /*
35*39388Smckusick  * Convert between mfsnode pointers and vnode pointers
36*39388Smckusick  */
37*39388Smckusick #define VTOMFS(vp)	((struct mfsnode *)(vp)->v_data)
38*39388Smckusick #define MFSTOV(mfsp)	((mfsp)->mfs_vnode)
39