| 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.22 (Berkeley) %G% |
| 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_link __P((struct vop_link_args *)); |
| 37 | int lfs_makeinode __P((int, struct nameidata *, struct inode **)); |
| 38 | int lfs_mkdir __P((struct vop_mkdir_args *)); |
| 39 | int lfs_mknod __P((struct vop_mknod_args *)); |
| 40 | int lfs_mount __P((struct mount *, |
| 41 | char *, caddr_t, struct nameidata *, struct proc *)); |
| 42 | int lfs_mountroot __P((void)); |
| 43 | struct buf * |
| 44 | lfs_newbuf __P((struct vnode *, daddr_t, size_t)); |
| 45 | int lfs_read __P((struct vop_read_args *)); |
| 46 | int lfs_remove __P((struct vop_remove_args *)); |
| 47 | int lfs_rmdir __P((struct vop_rmdir_args *)); |
| 48 | int lfs_rename __P((struct vop_rename_args *)); |
| 49 | int lfs_root __P((struct mount *, struct vnode **)); |
| 50 | void lfs_seglock __P((struct lfs *)); |
| 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_write __P((struct vop_write_args *)); |
| 66 | #ifdef DEBUG |
| 67 | void lfs_dump_dinode __P((struct dinode *)); |
| 68 | void lfs_dump_super __P((struct lfs *)); |
| 69 | #endif |
| 70 | __END_DECLS |
| 71 | extern int (**lfs_vnodeop_p)(); |
| 72 | extern int (**lfs_specop_p)(); |
| 73 | #ifdef FIFO |
| 74 | extern int (**lfs_fifoop_p)(); |
| 75 | #define LFS_FIFOOPS lfs_fifoop_p |
| 76 | #else |
| 77 | #define LFS_FIFOOPS NULL |
| 78 | #endif |