151187Sbostic /*- 251187Sbostic * Copyright (c) 1991 The Regents of the University of California. 351187Sbostic * All rights reserved. 451187Sbostic * 551187Sbostic * %sccs.include.redist.c% 651187Sbostic * 7*51489Sbostic * @(#)lfs_extern.h 5.4 (Berkeley) 11/01/91 851187Sbostic */ 951187Sbostic 1051187Sbostic struct fid; 1151215Sbostic struct nameidata; 1251187Sbostic struct statfs; 1351187Sbostic struct proc; 1451187Sbostic 15*51489Sbostic __BEGIN_DECLS 16*51489Sbostic u_long cksum __P((void *, size_t)); /* XXX */ 17*51489Sbostic int lfs_blkatoff __P((struct inode *, off_t, char **, struct buf **)); 18*51489Sbostic int lfs_bmap __P((INODE *, daddr_t, daddr_t *)); 19*51489Sbostic int lfs_bwrite __P((BUF *)); 20*51489Sbostic int lfs_fsync 21*51489Sbostic __P((struct vnode *, int, struct ucred *, int, struct proc *)); 2251187Sbostic u_long lfs_getversion __P((LFS *fs, ino_t)); 23*51489Sbostic int lfs_ialloc __P((INODE *, int, UCRED *, INODE **)); 24*51489Sbostic DINODE *lfs_ifind __P((LFS *, ino_t, void *)); 25*51489Sbostic void lfs_ifree __P((INODE *, ino_t, int)); 26*51489Sbostic int lfs_iget __P((INODE *, ino_t, INODE **)); 27*51489Sbostic int lfs_inactive __P((VNODE *, struct proc *)); 2851187Sbostic int lfs_init __P((void)); 2951215Sbostic void lfs_iset __P((INODE *, daddr_t, time_t)); 30*51489Sbostic daddr_t lfs_itod __P((LFS *, ino_t)); 31*51489Sbostic int lfs_itrunc __P((INODE *, u_long, int)); 32*51489Sbostic int lfs_iupdat 33*51489Sbostic __P((struct inode *, struct timeval *, struct timeval *, int)); 34*51489Sbostic int lfs_makeinode __P((int, struct nameidata *, struct inode **)); 35*51489Sbostic int lfs_mount 36*51489Sbostic __P((MOUNT *, char *, caddr_t, struct nameidata *, struct proc *)); 37*51489Sbostic int lfs_mountroot __P((void)); 38*51489Sbostic int lfs_read __P((struct vnode *, struct uio *, int, struct ucred *)); 3951215Sbostic int lfs_segwrite __P((MOUNT *, int)); 40*51489Sbostic int lfs_statfs __P((MOUNT *, struct statfs *, struct proc *)); 41*51489Sbostic int lfs_sync __P((MOUNT *, int)); 42*51489Sbostic int lfs_unmount __P((MOUNT *, int, struct proc *)); 43*51489Sbostic int lfs_vcreate __P((MOUNT *, ino_t, VNODE **)); 44*51489Sbostic int lfs_write __P((struct vnode *, struct uio *, int, struct ucred *)); 4551187Sbostic 4651187Sbostic #ifdef DEBUG 47*51489Sbostic void lfs_dump_dinode __P((DINODE *)); 48*51489Sbostic void lfs_dump_super __P((LFS *)); 49*51489Sbostic int lfs_umountdebug __P((struct mount *)); 50*51489Sbostic int lfs_vinvalbuf __P((struct vnode *)); 5151187Sbostic #endif 52*51489Sbostic __END_DECLS 5351187Sbostic 5451187Sbostic extern struct vnodeops lfs_vnodeops; 55