xref: /original-bsd/sys/ufs/mfs/mfsnode.h (revision 8df85427)
1 /*
2  * Copyright (c) 1989, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)mfsnode.h	8.3 (Berkeley) 05/19/95
8  */
9 
10 /*
11  * This structure defines the control data for the memory based file system.
12  */
13 
14 struct mfsnode {
15 	struct	vnode *mfs_vnode;	/* vnode associated with this mfsnode */
16 	caddr_t	mfs_baseoff;		/* base of file system in memory */
17 	long	mfs_size;		/* size of memory file system */
18 	pid_t	mfs_pid;		/* supporting process pid */
19 	struct	buf *mfs_buflist;	/* list of I/O requests */
20 	long	mfs_spare[4];
21 };
22 
23 /*
24  * Convert between mfsnode pointers and vnode pointers
25  */
26 #define VTOMFS(vp)	((struct mfsnode *)(vp)->v_data)
27 #define MFSTOV(mfsp)	((mfsp)->mfs_vnode)
28 
29 /* Prototypes for MFS operations on vnodes. */
30 #define mfs_lookup ((int (*) __P((struct  vop_lookup_args *)))mfs_badop)
31 #define mfs_create ((int (*) __P((struct  vop_create_args *)))mfs_badop)
32 #define mfs_mknod ((int (*) __P((struct  vop_mknod_args *)))mfs_badop)
33 #define mfs_access ((int (*) __P((struct  vop_access_args *)))mfs_badop)
34 #define mfs_getattr ((int (*) __P((struct  vop_getattr_args *)))mfs_badop)
35 #define mfs_setattr ((int (*) __P((struct  vop_setattr_args *)))mfs_badop)
36 #define mfs_read ((int (*) __P((struct  vop_read_args *)))mfs_badop)
37 #define mfs_write ((int (*) __P((struct  vop_write_args *)))mfs_badop)
38 #define mfs_select ((int (*) __P((struct  vop_select_args *)))mfs_badop)
39 #define mfs_mmap ((int (*) __P((struct  vop_mmap_args *)))mfs_badop)
40 #define mfs_seek ((int (*) __P((struct  vop_seek_args *)))mfs_badop)
41 #define mfs_remove ((int (*) __P((struct  vop_remove_args *)))mfs_badop)
42 #define mfs_link ((int (*) __P((struct  vop_link_args *)))mfs_badop)
43 #define mfs_rename ((int (*) __P((struct  vop_rename_args *)))mfs_badop)
44 #define mfs_mkdir ((int (*) __P((struct  vop_mkdir_args *)))mfs_badop)
45 #define mfs_rmdir ((int (*) __P((struct  vop_rmdir_args *)))mfs_badop)
46 #define mfs_symlink ((int (*) __P((struct  vop_symlink_args *)))mfs_badop)
47 #define mfs_readdir ((int (*) __P((struct  vop_readdir_args *)))mfs_badop)
48 #define mfs_readlink ((int (*) __P((struct  vop_readlink_args *)))mfs_badop)
49 #define mfs_abortop ((int (*) __P((struct  vop_abortop_args *)))mfs_badop)
50 #define mfs_lock ((int (*) __P((struct  vop_lock_args *)))vop_nolock)
51 #define mfs_unlock ((int (*) __P((struct  vop_unlock_args *)))vop_nounlock)
52 #define mfs_islocked ((int(*) __P((struct vop_islocked_args *)))vop_noislocked)
53 #define mfs_pathconf ((int (*) __P((struct  vop_pathconf_args *)))mfs_badop)
54 #define mfs_advlock ((int (*) __P((struct  vop_advlock_args *)))mfs_badop)
55 #define mfs_blkatoff ((int (*) __P((struct  vop_blkatoff_args *)))mfs_badop)
56 #define mfs_valloc ((int (*) __P((struct  vop_valloc_args *)))mfs_badop)
57 #define mfs_vfree ((int (*) __P((struct  vop_vfree_args *)))mfs_badop)
58 #define mfs_truncate ((int (*) __P((struct  vop_truncate_args *)))mfs_badop)
59 #define mfs_update ((int (*) __P((struct  vop_update_args *)))mfs_badop)
60 #define mfs_bwrite ((int (*) __P((struct  vop_bwrite_args *)))vn_bwrite)
61