1*41715070Sdholland /* $NetBSD: mfs_extern.h,v 1.32 2021/07/18 23:57:15 dholland Exp $ */ 2fccfa11aScgd 3264b874cSmycroft /*- 4264b874cSmycroft * Copyright (c) 1991, 1993 5264b874cSmycroft * The Regents of the University of California. All rights reserved. 6264b874cSmycroft * 7264b874cSmycroft * Redistribution and use in source and binary forms, with or without 8264b874cSmycroft * modification, are permitted provided that the following conditions 9264b874cSmycroft * are met: 10264b874cSmycroft * 1. Redistributions of source code must retain the above copyright 11264b874cSmycroft * notice, this list of conditions and the following disclaimer. 12264b874cSmycroft * 2. Redistributions in binary form must reproduce the above copyright 13264b874cSmycroft * notice, this list of conditions and the following disclaimer in the 14264b874cSmycroft * documentation and/or other materials provided with the distribution. 15aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 16264b874cSmycroft * may be used to endorse or promote products derived from this software 17264b874cSmycroft * without specific prior written permission. 18264b874cSmycroft * 19264b874cSmycroft * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20264b874cSmycroft * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21264b874cSmycroft * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22264b874cSmycroft * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23264b874cSmycroft * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24264b874cSmycroft * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25264b874cSmycroft * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26264b874cSmycroft * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27264b874cSmycroft * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28264b874cSmycroft * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29264b874cSmycroft * SUCH DAMAGE. 30264b874cSmycroft * 31e5bc90f4Sfvdl * @(#)mfs_extern.h 8.4 (Berkeley) 3/30/95 32264b874cSmycroft */ 33264b874cSmycroft 3460db16d1Smatt #ifndef _UFS_MFS_MFS_EXTERN_H_ 3560db16d1Smatt #define _UFS_MFS_MFS_EXTERN_H_ 3660db16d1Smatt 3795bedce0Spooka #include <sys/param.h> 3895bedce0Spooka #include <sys/mount.h> 39b1934809Sthorpej #include <sys/mallocvar.h> 40b1934809Sthorpej 41264b874cSmycroft struct buf; 42264b874cSmycroft struct mount; 43264b874cSmycroft struct nameidata; 44264b874cSmycroft struct proc; 456bd1d6d4Schristos struct statvfs; 46264b874cSmycroft struct vnode; 47264b874cSmycroft 48264b874cSmycroft __BEGIN_DECLS 49574106c5Smatthias 50573481f5Schristos /* mfs_vfsops.c */ 518d1f8992Spooka VFS_PROTOS(mfs); 52573481f5Schristos 538d1f8992Spooka int mfs_initminiroot(void *); 54573481f5Schristos 55573481f5Schristos /* mfs_vnops.c */ 5623ebf62dSxtraeme int mfs_open(void *); 5723ebf62dSxtraeme int mfs_strategy(void *); 5853524e44Schristos void mfs_doio(struct buf *, void *); 5923ebf62dSxtraeme int mfs_bmap(void *); 6023ebf62dSxtraeme int mfs_close(void *); 6123ebf62dSxtraeme int mfs_inactive(void *); 6223ebf62dSxtraeme int mfs_reclaim(void *); 6323ebf62dSxtraeme int mfs_print(void *); 6442d06267Sad int mfs_fsync(void *); 65573481f5Schristos 66021b86ddSad #ifdef _KERNEL 67021b86ddSad 68021b86ddSad #include <sys/mutex.h> 69021b86ddSad 70021b86ddSad extern kmutex_t mfs_lock; 71d6f18673Spooka extern void *mfs_rootbase; 72d6f18673Spooka extern u_long mfs_rootsize; 73021b86ddSad 74021b86ddSad #endif 75021b86ddSad 76264b874cSmycroft __END_DECLS 7760db16d1Smatt 7860db16d1Smatt #endif /* !_UFS_MFS_MFS_EXTERN_H_ */ 79