xref: /csrg-svn/sys/ufs/lfs/lfs_extern.h (revision 57071)
151187Sbostic /*-
251187Sbostic  * Copyright (c) 1991 The Regents of the University of California.
351187Sbostic  * All rights reserved.
451187Sbostic  *
551187Sbostic  * %sccs.include.redist.c%
651187Sbostic  *
7*57071Smargo  *	@(#)lfs_extern.h	7.23 (Berkeley) 12/10/92
851187Sbostic  */
951187Sbostic 
1051187Sbostic struct fid;
1151563Smckusick struct mount;
1251215Sbostic struct nameidata;
1351859Sbostic struct proc;
1451187Sbostic struct statfs;
1551859Sbostic struct timeval;
1653233Smckusick struct inode;
1751859Sbostic struct uio;
1854735Smckusick struct mbuf;
1951187Sbostic 
2051489Sbostic __BEGIN_DECLS
2151489Sbostic u_long	 cksum __P((void *, size_t));				/* XXX */
2252084Sbostic int	 lfs_balloc __P((struct vnode *, u_long, daddr_t, struct buf **));
2353562Sheideman int	 lfs_blkatoff __P((struct vop_blkatoff_args *));
2453562Sheideman int	 lfs_bwrite __P((struct vop_bwrite_args *));
2555939Sbostic int	 lfs_check __P((struct vnode *, daddr_t));
2656055Sbostic int	 lfs_close __P((struct vop_close_args *));
2754264Sbostic int	 lfs_create __P((struct vop_create_args *));
2854735Smckusick int	 lfs_fhtovp __P((struct mount *, struct fid *, struct mbuf *,
2954735Smckusick 	    struct vnode **, int *, struct ucred **));
3053562Sheideman int	 lfs_fsync __P((struct vop_fsync_args *));
3155939Sbostic int	 lfs_getattr __P((struct vop_getattr_args *));
3254689Sbostic struct dinode *
3354689Sbostic 	 lfs_ifind __P((struct lfs *, ino_t, struct dinode *));
3453562Sheideman int	 lfs_inactive __P((struct vop_inactive_args *));
3551187Sbostic int	 lfs_init __P((void));
36*57071Smargo int	 lfs_initseg __P((struct lfs *));
3754264Sbostic int	 lfs_link __P((struct vop_link_args *));
3851489Sbostic int	 lfs_makeinode __P((int, struct nameidata *, struct inode **));
3954264Sbostic int	 lfs_mkdir __P((struct vop_mkdir_args *));
4054264Sbostic int	 lfs_mknod __P((struct vop_mknod_args *));
4153146Sbostic int	 lfs_mount __P((struct mount *,
4253146Sbostic 	    char *, caddr_t, struct nameidata *, struct proc *));
4351489Sbostic int	 lfs_mountroot __P((void));
4455939Sbostic struct buf *
4555939Sbostic 	 lfs_newbuf __P((struct vnode *, daddr_t, size_t));
4653562Sheideman int	 lfs_read __P((struct vop_read_args *));
4754264Sbostic int	 lfs_remove __P((struct vop_remove_args *));
4854264Sbostic int	 lfs_rmdir __P((struct vop_rmdir_args *));
4954264Sbostic int	 lfs_rename __P((struct vop_rename_args *));
5051563Smckusick int	 lfs_root __P((struct mount *, struct vnode **));
51*57071Smargo void	 lfs_seglock __P((struct lfs *, unsigned long flags));
5254689Sbostic void	 lfs_segunlock __P((struct lfs *));
5353146Sbostic int	 lfs_segwrite __P((struct mount *, int));
5453146Sbostic int	 lfs_statfs __P((struct mount *, struct statfs *, struct proc *));
5554264Sbostic int	 lfs_symlink __P((struct vop_symlink_args *));
5654689Sbostic int	 lfs_sync __P((struct mount *, int, struct ucred *, struct proc *));
5753562Sheideman int	 lfs_truncate __P((struct vop_truncate_args *));
5853146Sbostic int	 lfs_unmount __P((struct mount *, int, struct proc *));
5953562Sheideman int	 lfs_update __P((struct vop_update_args *));
6053562Sheideman int	 lfs_valloc __P((struct vop_valloc_args *));
6153146Sbostic int	 lfs_vcreate __P((struct mount *, ino_t, struct vnode **));
6253573Sheideman int	 lfs_vfree __P((struct vop_vfree_args *));
6352326Sbostic int	 lfs_vflush __P((struct vnode *));
6454689Sbostic int	 lfs_vget __P((struct mount *, ino_t, struct vnode **));
6551563Smckusick int	 lfs_vptofh __P((struct vnode *, struct fid *));
66*57071Smargo int	 lfs_vref __P((struct vnode *));
67*57071Smargo void	 lfs_vunref __P((struct vnode *));
6853562Sheideman int	 lfs_write __P((struct vop_write_args *));
6951187Sbostic #ifdef DEBUG
7053146Sbostic void	lfs_dump_dinode __P((struct dinode *));
7151497Sbostic void	lfs_dump_super __P((struct lfs *));
7251187Sbostic #endif
7351489Sbostic __END_DECLS
7453573Sheideman extern int (**lfs_vnodeop_p)();
7553573Sheideman extern int (**lfs_specop_p)();
7651595Smckusick #ifdef FIFO
7753562Sheideman extern int (**lfs_fifoop_p)();
7853509Sheideman #define LFS_FIFOOPS lfs_fifoop_p
7951595Smckusick #else
8051595Smckusick #define LFS_FIFOOPS NULL
8151595Smckusick #endif
82