1 /*- 2 * Copyright (c) 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)lfs_extern.h 8.2 (Berkeley) 04/16/94 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 struct mbuf; 19 20 __BEGIN_DECLS 21 u_long cksum __P((void *, size_t)); /* XXX */ 22 int lfs_balloc __P((struct vnode *, u_long, daddr_t, struct buf **)); 23 int lfs_blkatoff __P((struct vop_blkatoff_args *)); 24 int lfs_bwrite __P((struct vop_bwrite_args *)); 25 int lfs_check __P((struct vnode *, daddr_t)); 26 int lfs_close __P((struct vop_close_args *)); 27 int lfs_create __P((struct vop_create_args *)); 28 int lfs_fhtovp __P((struct mount *, struct fid *, struct mbuf *, 29 struct vnode **, int *, struct ucred **)); 30 int lfs_fsync __P((struct vop_fsync_args *)); 31 int lfs_getattr __P((struct vop_getattr_args *)); 32 struct dinode * 33 lfs_ifind __P((struct lfs *, ino_t, struct dinode *)); 34 int lfs_inactive __P((struct vop_inactive_args *)); 35 int lfs_init __P((void)); 36 int lfs_initseg __P((struct lfs *)); 37 int lfs_link __P((struct vop_link_args *)); 38 int lfs_makeinode __P((int, struct nameidata *, struct inode **)); 39 int lfs_mkdir __P((struct vop_mkdir_args *)); 40 int lfs_mknod __P((struct vop_mknod_args *)); 41 int lfs_mount __P((struct mount *, 42 char *, caddr_t, struct nameidata *, struct proc *)); 43 int lfs_mountroot __P((void)); 44 struct buf * 45 lfs_newbuf __P((struct vnode *, daddr_t, size_t)); 46 int lfs_read __P((struct vop_read_args *)); 47 int lfs_remove __P((struct vop_remove_args *)); 48 int lfs_rmdir __P((struct vop_rmdir_args *)); 49 int lfs_rename __P((struct vop_rename_args *)); 50 void lfs_seglock __P((struct lfs *, unsigned long flags)); 51 void lfs_segunlock __P((struct lfs *)); 52 int lfs_segwrite __P((struct mount *, int)); 53 int lfs_statfs __P((struct mount *, struct statfs *, struct proc *)); 54 int lfs_symlink __P((struct vop_symlink_args *)); 55 int lfs_sync __P((struct mount *, int, struct ucred *, struct proc *)); 56 int lfs_truncate __P((struct vop_truncate_args *)); 57 int lfs_unmount __P((struct mount *, int, struct proc *)); 58 int lfs_update __P((struct vop_update_args *)); 59 int lfs_valloc __P((struct vop_valloc_args *)); 60 int lfs_vcreate __P((struct mount *, ino_t, struct vnode **)); 61 int lfs_vfree __P((struct vop_vfree_args *)); 62 int lfs_vflush __P((struct vnode *)); 63 int lfs_vget __P((struct mount *, ino_t, struct vnode **)); 64 int lfs_vptofh __P((struct vnode *, struct fid *)); 65 int lfs_vref __P((struct vnode *)); 66 void lfs_vunref __P((struct vnode *)); 67 int lfs_write __P((struct vop_write_args *)); 68 #ifdef DEBUG 69 void lfs_dump_dinode __P((struct dinode *)); 70 void lfs_dump_super __P((struct lfs *)); 71 #endif 72 __END_DECLS 73 extern int (**lfs_vnodeop_p)(); 74 extern int (**lfs_specop_p)(); 75 #ifdef FIFO 76 extern int (**lfs_fifoop_p)(); 77 #define LFS_FIFOOPS lfs_fifoop_p 78 #else 79 #define LFS_FIFOOPS NULL 80 #endif 81