xref: /csrg-svn/sys/ufs/lfs/lfs_extern.h (revision 51563)
151187Sbostic /*-
251187Sbostic  * Copyright (c) 1991 The Regents of the University of California.
351187Sbostic  * All rights reserved.
451187Sbostic  *
551187Sbostic  * %sccs.include.redist.c%
651187Sbostic  *
7*51563Smckusick  *	@(#)lfs_extern.h	7.2 (Berkeley) 11/05/91
851187Sbostic  */
951187Sbostic 
1051187Sbostic struct fid;
11*51563Smckusick struct mount;
1251215Sbostic struct nameidata;
1351187Sbostic struct statfs;
1451187Sbostic struct proc;
1551187Sbostic 
1651489Sbostic __BEGIN_DECLS
1751489Sbostic u_long	 cksum __P((void *, size_t));				/* XXX */
18*51563Smckusick int	 lfs_blkatoff __P((struct vnode *, off_t, char **, struct buf **));
19*51563Smckusick int	 lfs_bmap __P((VNODE *, daddr_t, VNODE **, daddr_t *));
2051489Sbostic int	 lfs_bwrite __P((BUF *));
21*51563Smckusick int	 lfs_fhtovp __P((struct mount *, struct fid *, struct vnode **));
2251489Sbostic int	 lfs_fsync
2351489Sbostic 	     __P((struct vnode *, int, struct ucred *, int, struct proc *));
2451497Sbostic u_long	 lfs_getversion __P((struct lfs *fs, ino_t));
2551497Sbostic DINODE	*lfs_ifind __P((struct lfs *, ino_t, void *));
2651489Sbostic int	 lfs_inactive __P((VNODE *, struct proc *));
2751187Sbostic int	 lfs_init __P((void));
2851215Sbostic void	 lfs_iset __P((INODE *, daddr_t, time_t));
2951497Sbostic daddr_t	 lfs_itod __P((struct lfs *, ino_t));
3051489Sbostic int	 lfs_makeinode __P((int, struct nameidata *, struct inode **));
3151489Sbostic int	 lfs_mount
3251489Sbostic 	     __P((MOUNT *, char *, caddr_t, struct nameidata *, struct proc *));
3351489Sbostic int	 lfs_mountroot __P((void));
3451489Sbostic int	 lfs_read __P((struct vnode *, struct uio *, int, struct ucred *));
35*51563Smckusick int	 lfs_root __P((struct mount *, struct vnode **));
3651215Sbostic int	 lfs_segwrite __P((MOUNT *, int));
3751489Sbostic int	 lfs_statfs __P((MOUNT *, struct statfs *, struct proc *));
3851489Sbostic int	 lfs_sync __P((MOUNT *, int));
39*51563Smckusick int	 lfs_truncate __P((VNODE *, u_long, int));
4051489Sbostic int	 lfs_unmount __P((MOUNT *, int, struct proc *));
41*51563Smckusick int	 lfs_update
42*51563Smckusick 	     __P((struct vnode *, struct timeval *, struct timeval *, int));
43*51563Smckusick int	 lfs_valloc __P((VNODE *, int, UCRED *, VNODE **));
4451489Sbostic int	 lfs_vcreate __P((MOUNT *, ino_t, VNODE **));
45*51563Smckusick void	 lfs_vfree __P((VNODE *, ino_t, int));
46*51563Smckusick int	 lfs_vget __P((struct mount *, ino_t, VNODE **));
47*51563Smckusick int	 lfs_vptofh __P((struct vnode *, struct fid *));
4851489Sbostic int	 lfs_write __P((struct vnode *, struct uio *, int, struct ucred *));
4951187Sbostic 
5051187Sbostic #ifdef DEBUG
5151489Sbostic void	lfs_dump_dinode __P((DINODE *));
5251497Sbostic void	lfs_dump_super __P((struct lfs *));
5351489Sbostic int	lfs_umountdebug __P((struct mount *));
5451489Sbostic int	lfs_vinvalbuf __P((struct vnode *));
5551187Sbostic #endif
5651489Sbostic __END_DECLS
57