1*d65f6f70SBen Gras /* $NetBSD: mfs_extern.h,v 1.31 2010/03/02 17:20:02 pooka Exp $ */ 2*d65f6f70SBen Gras 3*d65f6f70SBen Gras /*- 4*d65f6f70SBen Gras * Copyright (c) 1991, 1993 5*d65f6f70SBen Gras * The Regents of the University of California. All rights reserved. 6*d65f6f70SBen Gras * 7*d65f6f70SBen Gras * Redistribution and use in source and binary forms, with or without 8*d65f6f70SBen Gras * modification, are permitted provided that the following conditions 9*d65f6f70SBen Gras * are met: 10*d65f6f70SBen Gras * 1. Redistributions of source code must retain the above copyright 11*d65f6f70SBen Gras * notice, this list of conditions and the following disclaimer. 12*d65f6f70SBen Gras * 2. Redistributions in binary form must reproduce the above copyright 13*d65f6f70SBen Gras * notice, this list of conditions and the following disclaimer in the 14*d65f6f70SBen Gras * documentation and/or other materials provided with the distribution. 15*d65f6f70SBen Gras * 3. Neither the name of the University nor the names of its contributors 16*d65f6f70SBen Gras * may be used to endorse or promote products derived from this software 17*d65f6f70SBen Gras * without specific prior written permission. 18*d65f6f70SBen Gras * 19*d65f6f70SBen Gras * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20*d65f6f70SBen Gras * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21*d65f6f70SBen Gras * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22*d65f6f70SBen Gras * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23*d65f6f70SBen Gras * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24*d65f6f70SBen Gras * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25*d65f6f70SBen Gras * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26*d65f6f70SBen Gras * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27*d65f6f70SBen Gras * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28*d65f6f70SBen Gras * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29*d65f6f70SBen Gras * SUCH DAMAGE. 30*d65f6f70SBen Gras * 31*d65f6f70SBen Gras * @(#)mfs_extern.h 8.4 (Berkeley) 3/30/95 32*d65f6f70SBen Gras */ 33*d65f6f70SBen Gras 34*d65f6f70SBen Gras #ifndef _UFS_MFS_MFS_EXTERN_H_ 35*d65f6f70SBen Gras #define _UFS_MFS_MFS_EXTERN_H_ 36*d65f6f70SBen Gras 37*d65f6f70SBen Gras #include <sys/param.h> 38*d65f6f70SBen Gras #include <sys/mount.h> 39*d65f6f70SBen Gras #include <sys/mallocvar.h> 40*d65f6f70SBen Gras 41*d65f6f70SBen Gras struct buf; 42*d65f6f70SBen Gras struct mount; 43*d65f6f70SBen Gras struct nameidata; 44*d65f6f70SBen Gras struct proc; 45*d65f6f70SBen Gras struct statvfs; 46*d65f6f70SBen Gras struct vnode; 47*d65f6f70SBen Gras 48*d65f6f70SBen Gras __BEGIN_DECLS 49*d65f6f70SBen Gras #define mfs_ioctl genfs_enoioctl 50*d65f6f70SBen Gras 51*d65f6f70SBen Gras /* mfs_vfsops.c */ 52*d65f6f70SBen Gras VFS_PROTOS(mfs); 53*d65f6f70SBen Gras 54*d65f6f70SBen Gras int mfs_initminiroot(void *); 55*d65f6f70SBen Gras 56*d65f6f70SBen Gras /* mfs_vnops.c */ 57*d65f6f70SBen Gras int mfs_open(void *); 58*d65f6f70SBen Gras int mfs_strategy(void *); 59*d65f6f70SBen Gras void mfs_doio(struct buf *, void *); 60*d65f6f70SBen Gras int mfs_bmap(void *); 61*d65f6f70SBen Gras int mfs_close(void *); 62*d65f6f70SBen Gras int mfs_inactive(void *); 63*d65f6f70SBen Gras int mfs_reclaim(void *); 64*d65f6f70SBen Gras int mfs_print(void *); 65*d65f6f70SBen Gras int mfs_fsync(void *); 66*d65f6f70SBen Gras 67*d65f6f70SBen Gras #ifdef _KERNEL 68*d65f6f70SBen Gras 69*d65f6f70SBen Gras #include <sys/mutex.h> 70*d65f6f70SBen Gras 71*d65f6f70SBen Gras extern kmutex_t mfs_lock; 72*d65f6f70SBen Gras extern void *mfs_rootbase; 73*d65f6f70SBen Gras extern u_long mfs_rootsize; 74*d65f6f70SBen Gras 75*d65f6f70SBen Gras #endif 76*d65f6f70SBen Gras 77*d65f6f70SBen Gras __END_DECLS 78*d65f6f70SBen Gras 79*d65f6f70SBen Gras #endif /* !_UFS_MFS_MFS_EXTERN_H_ */ 80