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.17 (Berkeley) 06/23/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 19 __BEGIN_DECLS 20 u_long cksum __P((void *, size_t)); /* XXX */ 21 int lfs_balloc __P((struct vnode *, u_long, daddr_t, struct buf **)); 22 int lfs_blkatoff __P((struct vop_blkatoff_args *)); 23 int lfs_bmap __P((struct vop_bmap_args *)); 24 int lfs_bmaparray 25 __P((struct vnode *, daddr_t, daddr_t *, INDIR *, int *)); 26 int lfs_bwrite __P((struct vop_bwrite_args *)); 27 int lfs_create __P((struct vop_create_args *)); 28 int lfs_fhtovp __P((struct mount *, struct fid *, int, struct vnode **)); 29 int lfs_fsync __P((struct vop_fsync_args *)); 30 int lfs_inactive __P((struct vop_inactive_args *)); 31 int lfs_init __P((void)); 32 int lfs_link __P((struct vop_link_args *)); 33 int lfs_makeinode __P((int, struct nameidata *, struct inode **)); 34 int lfs_mkdir __P((struct vop_mkdir_args *)); 35 int lfs_mknod __P((struct vop_mknod_args *)); 36 int lfs_mntinvalbuf __P((struct mount *)); 37 int lfs_mount __P((struct mount *, 38 char *, caddr_t, struct nameidata *, struct proc *)); 39 int lfs_mountroot __P((void)); 40 int lfs_read __P((struct vop_read_args *)); 41 int lfs_remove __P((struct vop_remove_args *)); 42 int lfs_rmdir __P((struct vop_rmdir_args *)); 43 int lfs_rename __P((struct vop_rename_args *)); 44 int lfs_root __P((struct mount *, struct vnode **)); 45 int lfs_segwrite __P((struct mount *, int)); 46 int lfs_statfs __P((struct mount *, struct statfs *, struct proc *)); 47 int lfs_symlink __P((struct vop_symlink_args *)); 48 int lfs_sync __P((struct mount *, int)); 49 int lfs_truncate __P((struct vop_truncate_args *)); 50 int lfs_unmount __P((struct mount *, int, struct proc *)); 51 int lfs_update __P((struct vop_update_args *)); 52 int lfs_valloc __P((struct vop_valloc_args *)); 53 int lfs_vcreate __P((struct mount *, ino_t, struct vnode **)); 54 int lfs_vfree __P((struct vop_vfree_args *)); 55 int lfs_vflush __P((struct vnode *)); 56 int lfs_vget __P((struct vop_vget_args *)); 57 int lfs_vinvalbuf __P((struct vnode *)); 58 int lfs_vptofh __P((struct vnode *, struct fid *)); 59 int lfs_write __P((struct vop_write_args *)); 60 #ifdef DEBUG 61 void lfs_dump_dinode __P((struct dinode *)); 62 void lfs_dump_super __P((struct lfs *)); 63 #endif 64 __END_DECLS 65 extern int (**lfs_vnodeop_p)(); 66 extern int (**lfs_specop_p)(); 67 #ifdef FIFO 68 extern int (**lfs_fifoop_p)(); 69 #define LFS_FIFOOPS lfs_fifoop_p 70 #else 71 #define LFS_FIFOOPS NULL 72 #endif 73