/* * Copyright (c) 1989 The Regents of the University of California. * All rights reserved. * * %sccs.include.redist.c% * * @(#)mfsnode.h 7.2 (Berkeley) 06/28/90 */ /* * This structure defines the control data for the memory * based file system. */ struct mfsnode { struct vnode *mfs_vnode; /* vnode associated with this mfsnode */ caddr_t mfs_baseoff; /* base of file system in memory */ long mfs_size; /* size of memory file system */ pid_t mfs_pid; /* supporting process pid */ struct buf *mfs_buflist; /* list of I/O requests */ long mfs_spare[4]; }; /* * Convert between mfsnode pointers and vnode pointers */ #define VTOMFS(vp) ((struct mfsnode *)(vp)->v_data) #define MFSTOV(mfsp) ((mfsp)->mfs_vnode)