xref: /csrg-svn/sys/ufs/lfs/lfs_extern.h (revision 53146)
151187Sbostic /*-
251187Sbostic  * Copyright (c) 1991 The Regents of the University of California.
351187Sbostic  * All rights reserved.
451187Sbostic  *
551187Sbostic  * %sccs.include.redist.c%
651187Sbostic  *
7*53146Sbostic  *	@(#)lfs_extern.h	7.11 (Berkeley) 04/08/92
851187Sbostic  */
951187Sbostic 
1051187Sbostic struct fid;
1151563Smckusick struct mount;
1251215Sbostic struct nameidata;
1351859Sbostic struct proc;
1451187Sbostic struct statfs;
1551859Sbostic struct timeval;
1651859Sbostic struct uio;
1751187Sbostic 
1851489Sbostic __BEGIN_DECLS
1951489Sbostic u_long	 cksum __P((void *, size_t));				/* XXX */
2052084Sbostic int	 lfs_balloc __P((struct vnode *, u_long, daddr_t, struct buf **));
2151563Smckusick int	 lfs_blkatoff __P((struct vnode *, off_t, char **, struct buf **));
22*53146Sbostic int	 lfs_bmap __P((struct vnode *, daddr_t, struct vnode **, daddr_t *));
23*53146Sbostic int	 lfs_bmaparray
24*53146Sbostic 	    __P((struct vnode *, daddr_t, daddr_t *, INDIR *, int *));
25*53146Sbostic int	 lfs_bwrite __P((struct buf *));
2652174Smckusick int	 lfs_fhtovp __P((struct mount *, struct fid *, int, struct vnode **));
2751489Sbostic int	 lfs_fsync
2851489Sbostic 	     __P((struct vnode *, int, struct ucred *, int, struct proc *));
29*53146Sbostic int	 lfs_inactive __P((struct vnode *, struct proc *));
3051187Sbostic int	 lfs_init __P((void));
3151489Sbostic int	 lfs_makeinode __P((int, struct nameidata *, struct inode **));
32*53146Sbostic int	 lfs_mount __P((struct mount *,
33*53146Sbostic 	    char *, caddr_t, struct nameidata *, struct proc *));
3451489Sbostic int	 lfs_mountroot __P((void));
3551489Sbostic int	 lfs_read __P((struct vnode *, struct uio *, int, struct ucred *));
3651563Smckusick int	 lfs_root __P((struct mount *, struct vnode **));
37*53146Sbostic int	 lfs_segwrite __P((struct mount *, int));
38*53146Sbostic int	 lfs_statfs __P((struct mount *, struct statfs *, struct proc *));
39*53146Sbostic int	 lfs_sync __P((struct mount *, int));
40*53146Sbostic int	 lfs_truncate __P((struct vnode *, u_long, int));
41*53146Sbostic int	 lfs_unmount __P((struct mount *, int, struct proc *));
4251563Smckusick int	 lfs_update
4351563Smckusick 	     __P((struct vnode *, struct timeval *, struct timeval *, int));
44*53146Sbostic int	 lfs_valloc __P((struct vnode *, int, struct ucred *, struct vnode **));
45*53146Sbostic int	 lfs_vcreate __P((struct mount *, ino_t, struct vnode **));
46*53146Sbostic void	 lfs_vfree __P((struct vnode *, ino_t, int));
4752326Sbostic int	 lfs_vflush __P((struct vnode *));
48*53146Sbostic int	 lfs_vget __P((struct mount *, ino_t, struct vnode **));
4951563Smckusick int	 lfs_vptofh __P((struct vnode *, struct fid *));
5051489Sbostic int	 lfs_write __P((struct vnode *, struct uio *, int, struct ucred *));
5151187Sbostic #ifdef DEBUG
52*53146Sbostic void	lfs_dump_dinode __P((struct dinode *));
5351497Sbostic void	lfs_dump_super __P((struct lfs *));
5451489Sbostic int	lfs_umountdebug __P((struct mount *));
5551489Sbostic int	lfs_vinvalbuf __P((struct vnode *));
5651187Sbostic #endif
5751489Sbostic __END_DECLS
5851595Smckusick extern struct vnodeops lfs_vnodeops, lfs_specops;
5951595Smckusick #ifdef FIFO
6051595Smckusick extern struct vnodeops lfs_fifoops;
6151595Smckusick #define LFS_FIFOOPS &lfs_fifoops
6251595Smckusick #else
6351595Smckusick #define LFS_FIFOOPS NULL
6451595Smckusick #endif
65