4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / sys / ufs / ffs / ffs_extern.h
CommitLineData
bfc55274 1/*-
80409bdc
KB
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
bfc55274
KB
4 *
5 * %sccs.include.redist.c%
6 *
80409bdc 7 * @(#)ffs_extern.h 8.1 (Berkeley) %G%
bfc55274
KB
8 */
9
10struct buf;
a9013e03 11struct fid;
bfc55274
KB
12struct fs;
13struct inode;
14struct mount;
15struct nameidata;
16struct proc;
17struct statfs;
18struct timeval;
19struct ucred;
20struct uio;
21struct vnode;
f341c7f9 22struct mbuf;
bfc55274
KB
23
24__BEGIN_DECLS
5068298a
KM
25int ffs_alloc __P((struct inode *,
26 daddr_t, daddr_t, int, struct ucred *, daddr_t *));
27int ffs_balloc __P((struct inode *,
28 daddr_t, int, struct ucred *, struct buf **, int));
9a2a27d8 29int ffs_blkatoff __P((struct vop_blkatoff_args *));
0308fc84 30int ffs_blkfree __P((struct inode *, daddr_t, long));
bfc55274 31daddr_t ffs_blkpref __P((struct inode *, daddr_t, int, daddr_t *));
9a2a27d8 32int ffs_bmap __P((struct vop_bmap_args *));
bfc55274 33void ffs_clrblock __P((struct fs *, u_char *, daddr_t));
f341c7f9
KM
34int ffs_fhtovp __P((struct mount *, struct fid *, struct mbuf *,
35 struct vnode **, int *, struct ucred **));
bfc55274 36void ffs_fragacct __P((struct fs *, int, long [], int));
9342689a 37int ffs_fsync __P((struct vop_fsync_args *));
bfc55274
KB
38int ffs_init __P((void));
39int ffs_isblock __P((struct fs *, u_char *, daddr_t));
bfc55274
KB
40int ffs_mount __P((struct mount *,
41 char *, caddr_t, struct nameidata *, struct proc *));
42int ffs_mountfs __P((struct vnode *, struct mount *, struct proc *));
43int ffs_mountroot __P((void));
9a2a27d8 44int ffs_read __P((struct vop_read_args *));
5068298a
KM
45int ffs_realloccg __P((struct inode *,
46 daddr_t, daddr_t, int, int, struct ucred *, struct buf **));
9a2a27d8 47int ffs_reclaim __P((struct vop_reclaim_args *));
a9013e03 48int ffs_root __P((struct mount *, struct vnode **));
bfc55274
KB
49void ffs_setblock __P((struct fs *, u_char *, daddr_t));
50int ffs_statfs __P((struct mount *, struct statfs *, struct proc *));
22e341b2 51int ffs_sync __P((struct mount *, int, struct ucred *, struct proc *));
9a2a27d8 52int ffs_truncate __P((struct vop_truncate_args *));
bfc55274 53int ffs_unmount __P((struct mount *, int, struct proc *));
9342689a 54int ffs_update __P((struct vop_update_args *));
9a2a27d8
JH
55int ffs_valloc __P((struct vop_valloc_args *));
56int ffs_vfree __P((struct vop_vfree_args *));
95fd99e2 57int ffs_vget __P((struct mount *, ino_t, struct vnode **));
a9013e03 58int ffs_vptofh __P((struct vnode *, struct fid *));
9a2a27d8 59int ffs_write __P((struct vop_write_args *));
bfc55274
KB
60
61int bwrite(); /* FFS needs a bwrite routine. XXX */
62
63#ifdef DIAGNOSTIC
64void ffs_checkoverlap __P((struct buf *, struct inode *));
65#endif
66__END_DECLS
67
9342689a
JH
68extern int (**ffs_vnodeop_p)();
69extern int (**ffs_specop_p)();
7ba38242 70#ifdef FIFO
9342689a 71extern int (**ffs_fifoop_p)();
4c9970f4 72#define FFS_FIFOOPS ffs_fifoop_p
7ba38242
KM
73#else
74#define FFS_FIFOOPS NULL
75#endif