xref: /original-bsd/sys/ufs/lfs/lfs_extern.h (revision e1db577d)
1 /*-
2  * Copyright (c) 1991 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)lfs_extern.h	7.19 (Berkeley) 07/06/92
8  */
9 
10 struct fid;
11 struct mount;
12 struct nameidata;
13 struct proc;
14 struct statfs;
15 struct timeval;
16 struct inode;
17 struct uio;
18 struct mbuf;
19 
20 __BEGIN_DECLS
21 u_long	 cksum __P((void *, size_t));				/* XXX */
22 int	 lfs_balloc __P((struct vnode *, u_long, daddr_t, struct buf **));
23 int	 lfs_blkatoff __P((struct vop_blkatoff_args *));
24 int	 lfs_bmap __P((struct vop_bmap_args *));
25 int	 lfs_bmaparray
26 	    __P((struct vnode *, daddr_t, daddr_t *, INDIR *, int *));
27 int	 lfs_bwrite __P((struct vop_bwrite_args *));
28 int	 lfs_create __P((struct vop_create_args *));
29 int	 lfs_fhtovp __P((struct mount *, struct fid *, struct mbuf *,
30 	    struct vnode **, int *, struct ucred **));
31 int	 lfs_fsync __P((struct vop_fsync_args *));
32 struct dinode *
33 	 lfs_ifind __P((struct lfs *, ino_t, struct dinode *));
34 int	 lfs_inactive __P((struct vop_inactive_args *));
35 int	 lfs_init __P((void));
36 int	 lfs_link __P((struct vop_link_args *));
37 int	 lfs_makeinode __P((int, struct nameidata *, struct inode **));
38 int	 lfs_mkdir __P((struct vop_mkdir_args *));
39 int	 lfs_mknod __P((struct vop_mknod_args *));
40 int	 lfs_mount __P((struct mount *,
41 	    char *, caddr_t, struct nameidata *, struct proc *));
42 int	 lfs_mountroot __P((void));
43 int	 lfs_read __P((struct vop_read_args *));
44 int	 lfs_remove __P((struct vop_remove_args *));
45 int	 lfs_rmdir __P((struct vop_rmdir_args *));
46 int	 lfs_rename __P((struct vop_rename_args *));
47 int	 lfs_root __P((struct mount *, struct vnode **));
48 void	 lfs_seglock __P((struct lfs *));
49 void	 lfs_segunlock __P((struct lfs *));
50 int	 lfs_segwrite __P((struct mount *, int));
51 int	 lfs_statfs __P((struct mount *, struct statfs *, struct proc *));
52 int	 lfs_symlink __P((struct vop_symlink_args *));
53 int	 lfs_sync __P((struct mount *, int, struct ucred *, struct proc *));
54 int	 lfs_truncate __P((struct vop_truncate_args *));
55 int	 lfs_unmount __P((struct mount *, int, struct proc *));
56 int	 lfs_update __P((struct vop_update_args *));
57 int	 lfs_valloc __P((struct vop_valloc_args *));
58 int	 lfs_vcreate __P((struct mount *, ino_t, struct vnode **));
59 int	 lfs_vfree __P((struct vop_vfree_args *));
60 int	 lfs_vflush __P((struct vnode *));
61 int	 lfs_vget __P((struct mount *, ino_t, struct vnode **));
62 int	 lfs_vptofh __P((struct vnode *, struct fid *));
63 int	 lfs_write __P((struct vop_write_args *));
64 #ifdef DEBUG
65 void	lfs_dump_dinode __P((struct dinode *));
66 void	lfs_dump_super __P((struct lfs *));
67 #endif
68 __END_DECLS
69 extern int (**lfs_vnodeop_p)();
70 extern int (**lfs_specop_p)();
71 #ifdef FIFO
72 extern int (**lfs_fifoop_p)();
73 #define LFS_FIFOOPS lfs_fifoop_p
74 #else
75 #define LFS_FIFOOPS NULL
76 #endif
77