date and time created 89/10/24 19:37:14 by mckusick
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 25 Oct 1989 11:37:14 +0000 (03:37 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 25 Oct 1989 11:37:14 +0000 (03:37 -0800)
SCCS-vsn: sys/ufs/mfs/mfsnode.h 7.1

usr/src/sys/ufs/mfs/mfsnode.h [new file with mode: 0644]

diff --git a/usr/src/sys/ufs/mfs/mfsnode.h b/usr/src/sys/ufs/mfs/mfsnode.h
new file mode 100644 (file)
index 0000000..4cb1995
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 1989 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ *     @(#)mfsnode.h   7.1 (Berkeley) %G%
+ */
+
+/*
+ * 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)