xref: /original-bsd/sys/ufs/ffs/ufs_extern.h (revision b4971bb3)
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.20 (Berkeley) 05/25/93
8  */
9 
10 struct buf;
11 struct direct;
12 struct disklabel;
13 struct fid;
14 struct flock;
15 struct inode;
16 struct mbuf;
17 struct mount;
18 struct nameidata;
19 struct proc;
20 struct ucred;
21 struct uio;
22 struct vattr;
23 struct vnode;
24 struct ufs_args;
25 
26 __BEGIN_DECLS
27 void	 diskerr
28 	    __P((struct buf *, char *, char *, int, int, struct disklabel *));
29 void	 disksort __P((struct buf *, struct buf *));
30 u_int	 dkcksum __P((struct disklabel *));
31 char	*readdisklabel __P((dev_t, int (*)(), struct disklabel *));
32 int	 setdisklabel __P((struct disklabel *, struct disklabel *, u_long));
33 int	 writedisklabel __P((dev_t, int (*)(), struct disklabel *));
34 
35 int	 ufs_abortop __P((struct vop_abortop_args *));
36 int	 ufs_access __P((struct vop_access_args *));
37 int	 ufs_advlock __P((struct vop_advlock_args *));
38 int	 ufs_bmap __P((struct vop_bmap_args *));
39 int	 ufs_check_export __P((struct mount *, struct ufid *, struct mbuf *,
40 		struct vnode **, int *exflagsp, struct ucred **));
41 int	 ufs_checkpath __P((struct inode *, struct inode *, struct ucred *));
42 int	 ufs_close __P((struct vop_close_args *));
43 int	 ufs_create __P((struct vop_create_args *));
44 void	 ufs_dirbad __P((struct inode *, doff_t, char *));
45 int	 ufs_dirbadentry __P((struct vnode *, struct direct *, int));
46 int	 ufs_dirempty __P((struct inode *, ino_t, struct ucred *));
47 int	 ufs_direnter __P((struct inode *, struct vnode *,struct componentname *));
48 int	 ufs_dirremove __P((struct vnode *, struct componentname*));
49 int	 ufs_dirrewrite
50 	    __P((struct inode *, struct inode *, struct componentname *));
51 void	 ufs_free_addrlist __P((struct ufsmount *));
52 int	 ufs_getattr __P((struct vop_getattr_args *));
53 int	 ufs_getlbns __P((struct vnode *, daddr_t, struct indir *, int *));
54 int	 ufs_hang_addrlist __P((struct mount *, struct ufs_args *));
55 struct vnode *
56 	 ufs_ihashget __P((dev_t, ino_t));
57 void	 ufs_ihashinit __P((void));
58 void	 ufs_ihashins __P((struct inode *));
59 struct vnode *
60 	 ufs_ihashlookup __P((dev_t, ino_t));
61 void	 ufs_ihashrem __P((struct inode *));
62 int	 ufs_inactive __P((struct vop_inactive_args *));
63 int	 ufs_init __P((void));
64 int	 ufs_ioctl __P((struct vop_ioctl_args *));
65 int	 ufs_islocked __P((struct vop_islocked_args *));
66 int	 ufs_link __P((struct vop_link_args *));
67 int	 ufs_lock __P((struct vop_lock_args *));
68 int	 ufs_lookup __P((struct vop_lookup_args *));
69 int	 ufs_makeinode __P((int mode, struct vnode *, struct vnode **, struct componentname *));
70 int	 ufs_mkdir __P((struct vop_mkdir_args *));
71 int	 ufs_mknod __P((struct vop_mknod_args *));
72 int	 ufs_mmap __P((struct vop_mmap_args *));
73 int	 ufs_mountedon __P((struct vnode *));
74 int	 ufs_open __P((struct vop_open_args *));
75 int	 ufs_pathconf __P((struct vop_pathconf_args *));
76 int	 ufs_print __P((struct vop_print_args *));
77 int	 ufs_readdir __P((struct vop_readdir_args *));
78 int	 ufs_readlink __P((struct vop_readlink_args *));
79 int	 ufs_reclaim __P((struct vop_reclaim_args *));
80 int	 ufs_remove __P((struct vop_remove_args *));
81 int	 ufs_rename __P((struct vop_rename_args *));
82 int	 ufs_rmdir __P((struct vop_rmdir_args *));
83 int	 ufs_seek __P((struct vop_seek_args *));
84 int	 ufs_select __P((struct vop_select_args *));
85 int	 ufs_setattr __P((struct vop_setattr_args *));
86 int	 ufs_start __P((struct mount *, int, struct proc *));
87 int	 ufs_strategy __P((struct vop_strategy_args *));
88 int	 ufs_symlink __P((struct vop_symlink_args *));
89 int	 ufs_unlock __P((struct vop_unlock_args *));
90 int	 ufs_vinit __P((struct mount *,
91 	    int (**)(), int (**)(), struct vnode **));
92 int	 ufsspec_close __P((struct vop_close_args *));
93 int	 ufsspec_read __P((struct vop_read_args *));
94 int	 ufsspec_write __P((struct vop_write_args *));
95 
96 #ifdef FIFO
97 int	ufsfifo_read __P((struct vop_read_args *));
98 int	ufsfifo_write __P((struct vop_write_args *));
99 int	ufsfifo_close __P((struct vop_close_args *));
100 #endif
101 __END_DECLS
102