xref: /original-bsd/sys/ufs/ffs/ufs_extern.h (revision e058e875)
1 /*-
2  * Copyright (c) 1991 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)ufs_extern.h	7.12 (Berkeley) 07/02/92
8  */
9 
10 struct buf;
11 struct direct;
12 struct disklabel;
13 struct fid;
14 struct flock;
15 struct inode;
16 struct mount;
17 struct nameidata;
18 struct proc;
19 struct ucred;
20 struct uio;
21 struct vattr;
22 struct vnode;
23 struct ufs_args;
24 
25 __BEGIN_DECLS
26 void	 diskerr
27 	    __P((struct buf *, char *, char *, int, int, struct disklabel *));
28 void	 disksort __P((struct buf *, struct buf *));
29 u_int	 dkcksum __P((struct disklabel *));
30 char	*readdisklabel __P((dev_t, int (*)(), struct disklabel *));
31 int	 setdisklabel __P((struct disklabel *, struct disklabel *, u_long));
32 int	 writedisklabel __P((dev_t, int (*)(), struct disklabel *));
33 
34 int	 ufs_abortop __P((struct vop_abortop_args *));
35 int	 ufs_access __P((struct vop_access_args *));
36 int	 ufs_advlock __P((struct vop_advlock_args *));
37 void	 ufs_bufstats __P((void));
38 int	 ufs_checkpath __P((struct inode *, struct inode *, struct ucred *));
39 int	 ufs_close __P((struct vop_close_args *));
40 int	 ufs_create __P((struct vop_create_args *));
41 void	 ufs_dirbad __P((struct inode *, doff_t, char *));
42 int	 ufs_dirbadentry __P((struct vnode *, struct direct *, int));
43 int	 ufs_dirempty __P((struct inode *, ino_t, struct ucred *));
44 int	 ufs_direnter __P((struct inode *, struct vnode *,struct componentname *));
45 int	 ufs_dirremove __P((struct vnode *, struct componentname*));
46 int	 ufs_dirrewrite
47 	    __P((struct inode *, struct inode *, struct componentname *));
48 void	 ufs_free_addrlist __P((struct ufsmount *));
49 int	 ufs_getattr __P((struct vop_getattr_args *));
50 int	 ufs_hang_addrlist __P((struct mount *, struct ufs_args *));
51 struct vnode *
52 	 ufs_ihashget __P((int, ino_t));
53 void	 ufs_ihashinit __P((void));
54 void	 ufs_ihashins __P((struct inode *));
55 void	 ufs_ilock __P((struct inode *));
56 int	 ufs_init __P((void));
57 int	 ufs_ioctl __P((struct vop_ioctl_args *));
58 void	 ufs_iput __P((struct inode *));
59 int	 ufs_islocked __P((struct vop_islocked_args *));
60 void	 ufs_iunlock __P((struct inode *));
61 int	 ufs_link __P((struct vop_link_args *));
62 int	 ufs_lock __P((struct vop_lock_args *));
63 int	 ufs_lookup __P((struct vop_lookup_args *));
64 int	 ufs_makeinode __P((int mode, struct vnode *, struct vnode **, struct componentname *));
65 int	 ufs_mkdir __P((struct vop_mkdir_args *));
66 int	 ufs_mknod __P((struct vop_mknod_args *));
67 int	 ufs_mmap __P((struct vop_mmap_args *));
68 int	 ufs_mountedon __P((struct vnode *));
69 int	 ufs_open __P((struct vop_open_args *));
70 int	 ufs_print __P((struct vop_print_args *));
71 int	 ufs_readdir __P((struct vop_readdir_args *));
72 int	 ufs_readlink __P((struct vop_readlink_args *));
73 int	 ufs_reclaim __P((struct vop_reclaim_args *));
74 int	 ufs_remove __P((struct vop_remove_args *));
75 int	 ufs_rename __P((struct vop_rename_args *));
76 int	 ufs_rmdir __P((struct vop_rmdir_args *));
77 int	 ufs_seek __P((struct vop_seek_args *));
78 int	 ufs_select __P((struct vop_select_args *));
79 int	 ufs_setattr __P((struct vop_setattr_args *));
80 int	 ufs_start __P((struct mount *, int, struct proc *));
81 int	 ufs_strategy __P((struct vop_strategy_args *));
82 int	 ufs_symlink __P((struct vop_symlink_args *));
83 int	 ufs_unlock __P((struct vop_unlock_args *));
84 int	 ufs_vinit __P((struct mount *,
85 	    int (**)(), int (**)(), struct vnode **));
86 int	 ufsspec_close __P((struct vop_close_args *));
87 int	 ufsspec_read __P((struct vop_read_args *));
88 int	 ufsspec_write __P((struct vop_write_args *));
89 
90 #ifdef FIFO
91 int	ufsfifo_read __P((struct vop_read_args *));
92 int	ufsfifo_write __P((struct vop_write_args *));
93 int	ufsfifo_close __P((struct vop_close_args *));
94 #endif
95 __END_DECLS
96