mfs_extern.h revision 1.14
11.14Sthorpej/* $NetBSD: mfs_extern.h,v 1.14 2003/02/01 06:23:54 thorpej Exp $ */ 21.2Scgd 31.1Smycroft/*- 41.1Smycroft * Copyright (c) 1991, 1993 51.1Smycroft * The Regents of the University of California. All rights reserved. 61.1Smycroft * 71.1Smycroft * Redistribution and use in source and binary forms, with or without 81.1Smycroft * modification, are permitted provided that the following conditions 91.1Smycroft * are met: 101.1Smycroft * 1. Redistributions of source code must retain the above copyright 111.1Smycroft * notice, this list of conditions and the following disclaimer. 121.1Smycroft * 2. Redistributions in binary form must reproduce the above copyright 131.1Smycroft * notice, this list of conditions and the following disclaimer in the 141.1Smycroft * documentation and/or other materials provided with the distribution. 151.1Smycroft * 3. All advertising materials mentioning features or use of this software 161.1Smycroft * must display the following acknowledgement: 171.1Smycroft * This product includes software developed by the University of 181.1Smycroft * California, Berkeley and its contributors. 191.1Smycroft * 4. Neither the name of the University nor the names of its contributors 201.1Smycroft * may be used to endorse or promote products derived from this software 211.1Smycroft * without specific prior written permission. 221.1Smycroft * 231.1Smycroft * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 241.1Smycroft * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 251.1Smycroft * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 261.1Smycroft * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 271.1Smycroft * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 281.1Smycroft * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 291.1Smycroft * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 301.1Smycroft * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 311.1Smycroft * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 321.1Smycroft * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 331.1Smycroft * SUCH DAMAGE. 341.1Smycroft * 351.7Sfvdl * @(#)mfs_extern.h 8.4 (Berkeley) 3/30/95 361.1Smycroft */ 371.1Smycroft 381.13Smatt#ifndef _UFS_MFS_MFS_EXTERN_H_ 391.13Smatt#define _UFS_MFS_MFS_EXTERN_H_ 401.14Sthorpej 411.14Sthorpej#include <sys/mallocvar.h> 421.14SthorpejMALLOC_DECLARE(M_MFSNODE); 431.13Smatt 441.1Smycroftstruct buf; 451.1Smycroftstruct mount; 461.1Smycroftstruct nameidata; 471.1Smycroftstruct proc; 481.1Smycroftstruct statfs; 491.1Smycroftstruct ucred; 501.1Smycroftstruct vnode; 511.1Smycroft 521.1Smycroft__BEGIN_DECLS 531.8Smatthias#define mfs_ioctl genfs_enoioctl 541.8Smatthias 551.4Schristos/* mfs_vfsops.c */ 561.4Schristosint mfs_mountroot __P((void)); 571.4Schristosint mfs_initminiroot __P((caddr_t)); 581.6Scgdint mfs_mount __P((struct mount *, const char *, void *, 591.4Schristos struct nameidata *, struct proc *)); 601.4Schristosint mfs_start __P((struct mount *, int, struct proc *)); 611.4Schristosint mfs_statfs __P((struct mount *, struct statfs *, struct proc *)); 621.7Sfvdlint mfs_sysctl __P((int *, u_int, void *, size_t *, void *, size_t, 631.7Sfvdl struct proc *)); 641.4Schristos 651.4Schristosvoid mfs_init __P((void)); 661.12Schsvoid mfs_reinit __P((void)); 671.9Sjdolecekvoid mfs_done __P((void)); 681.4Schristos 691.4Schristos/* mfs_vnops.c */ 701.4Schristosint mfs_open __P((void *)); 711.4Schristosint mfs_strategy __P((void *)); 721.11Sthorpejvoid mfs_doio __P((struct buf *, caddr_t)); 731.4Schristosint mfs_bmap __P((void *)); 741.4Schristosint mfs_close __P((void *)); 751.4Schristosint mfs_inactive __P((void *)); 761.4Schristosint mfs_reclaim __P((void *)); 771.4Schristosint mfs_print __P((void *)); 781.4Schristos 791.1Smycroft__END_DECLS 801.13Smatt 811.13Smatt#endif /* !_UFS_MFS_MFS_EXTERN_H_ */ 82