ffs_extern.h revision 1549
11541Srgrimes/*- 21541Srgrimes * Copyright (c) 1991, 1993, 1994 31541Srgrimes * The Regents of the University of California. All rights reserved. 41541Srgrimes * 51541Srgrimes * Redistribution and use in source and binary forms, with or without 61541Srgrimes * modification, are permitted provided that the following conditions 71541Srgrimes * are met: 81541Srgrimes * 1. Redistributions of source code must retain the above copyright 91541Srgrimes * notice, this list of conditions and the following disclaimer. 101541Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111541Srgrimes * notice, this list of conditions and the following disclaimer in the 121541Srgrimes * documentation and/or other materials provided with the distribution. 131541Srgrimes * 3. All advertising materials mentioning features or use of this software 141541Srgrimes * must display the following acknowledgement: 151541Srgrimes * This product includes software developed by the University of 161541Srgrimes * California, Berkeley and its contributors. 171541Srgrimes * 4. Neither the name of the University nor the names of its contributors 181541Srgrimes * may be used to endorse or promote products derived from this software 191541Srgrimes * without specific prior written permission. 201541Srgrimes * 211541Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 221541Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 231541Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241541Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 251541Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 261541Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 271541Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 281541Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 291541Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 301541Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 311541Srgrimes * SUCH DAMAGE. 321541Srgrimes * 331541Srgrimes * @(#)ffs_extern.h 8.3 (Berkeley) 4/16/94 341541Srgrimes */ 351541Srgrimes 361541Srgrimesstruct buf; 371541Srgrimesstruct fid; 381541Srgrimesstruct fs; 391541Srgrimesstruct inode; 401541Srgrimesstruct mount; 411541Srgrimesstruct nameidata; 421541Srgrimesstruct proc; 431541Srgrimesstruct statfs; 441541Srgrimesstruct timeval; 451541Srgrimesstruct ucred; 461541Srgrimesstruct uio; 471541Srgrimesstruct vnode; 481541Srgrimesstruct mbuf; 491541Srgrimes 501541Srgrimes__BEGIN_DECLS 511541Srgrimesint ffs_alloc __P((struct inode *, 521541Srgrimes daddr_t, daddr_t, int, struct ucred *, daddr_t *)); 531541Srgrimesint ffs_balloc __P((struct inode *, 541541Srgrimes daddr_t, int, struct ucred *, struct buf **, int)); 551541Srgrimesint ffs_blkatoff __P((struct vop_blkatoff_args *)); 561549Srgrimesvoid ffs_blkfree __P((struct inode *, daddr_t, long)); 571541Srgrimesdaddr_t ffs_blkpref __P((struct inode *, daddr_t, int, daddr_t *)); 581541Srgrimesint ffs_bmap __P((struct vop_bmap_args *)); 591541Srgrimesvoid ffs_clrblock __P((struct fs *, u_char *, daddr_t)); 601541Srgrimesint ffs_fhtovp __P((struct mount *, struct fid *, struct mbuf *, 611541Srgrimes struct vnode **, int *, struct ucred **)); 621541Srgrimesvoid ffs_fragacct __P((struct fs *, int, long [], int)); 631541Srgrimesint ffs_fsync __P((struct vop_fsync_args *)); 641541Srgrimesint ffs_init __P((void)); 651541Srgrimesint ffs_isblock __P((struct fs *, u_char *, daddr_t)); 661541Srgrimesint ffs_mount __P((struct mount *, 671541Srgrimes char *, caddr_t, struct nameidata *, struct proc *)); 681541Srgrimesint ffs_mountfs __P((struct vnode *, struct mount *, struct proc *)); 691541Srgrimesint ffs_mountroot __P((void)); 701541Srgrimesint ffs_read __P((struct vop_read_args *)); 711541Srgrimesint ffs_reallocblks __P((struct vop_reallocblks_args *)); 721541Srgrimesint ffs_realloccg __P((struct inode *, 731541Srgrimes daddr_t, daddr_t, int, int, struct ucred *, struct buf **)); 741541Srgrimesint ffs_reclaim __P((struct vop_reclaim_args *)); 751541Srgrimesvoid ffs_setblock __P((struct fs *, u_char *, daddr_t)); 761541Srgrimesint ffs_statfs __P((struct mount *, struct statfs *, struct proc *)); 771541Srgrimesint ffs_sync __P((struct mount *, int, struct ucred *, struct proc *)); 781541Srgrimesint ffs_truncate __P((struct vop_truncate_args *)); 791541Srgrimesint ffs_unmount __P((struct mount *, int, struct proc *)); 801541Srgrimesint ffs_update __P((struct vop_update_args *)); 811541Srgrimesint ffs_valloc __P((struct vop_valloc_args *)); 821541Srgrimesint ffs_vfree __P((struct vop_vfree_args *)); 831541Srgrimesint ffs_vget __P((struct mount *, ino_t, struct vnode **)); 841541Srgrimesint ffs_vptofh __P((struct vnode *, struct fid *)); 851541Srgrimesint ffs_write __P((struct vop_write_args *)); 861541Srgrimes 871541Srgrimesint bwrite(); /* FFS needs a bwrite routine. XXX */ 881541Srgrimes 891541Srgrimes#ifdef DIAGNOSTIC 901541Srgrimesvoid ffs_checkoverlap __P((struct buf *, struct inode *)); 911541Srgrimes#endif 921541Srgrimes__END_DECLS 931541Srgrimes 941541Srgrimesextern int (**ffs_vnodeop_p)(); 951541Srgrimesextern int (**ffs_specop_p)(); 961541Srgrimes#ifdef FIFO 971541Srgrimesextern int (**ffs_fifoop_p)(); 981541Srgrimes#define FFS_FIFOOPS ffs_fifoop_p 991541Srgrimes#else 1001541Srgrimes#define FFS_FIFOOPS NULL 1011541Srgrimes#endif 102