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