The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/ufs/ext2fs/ext2fs_extern.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: ext2fs_extern.h,v 1.22.2.1 2004/05/23 10:46:17 tron Exp $      */
    2 
    3 /*-
    4  * Copyright (c) 1991, 1993, 1994
    5  *      The Regents of the University of California.  All rights reserved.
    6  *
    7  * Redistribution and use in source and binary forms, with or without
    8  * modification, are permitted provided that the following conditions
    9  * are met:
   10  * 1. Redistributions of source code must retain the above copyright
   11  *    notice, this list of conditions and the following disclaimer.
   12  * 2. Redistributions in binary form must reproduce the above copyright
   13  *    notice, this list of conditions and the following disclaimer in the
   14  *    documentation and/or other materials provided with the distribution.
   15  * 3. Neither the name of the University nor the names of its contributors
   16  *    may be used to endorse or promote products derived from this software
   17  *    without specific prior written permission.
   18  *
   19  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   20  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   22  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   23  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   24  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   25  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   26  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   27  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   28  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   29  * SUCH DAMAGE.
   30  *
   31  *      @(#)ffs_extern.h        8.3 (Berkeley) 4/16/94
   32  * Modified for ext2fs by Manuel Bouyer.
   33  */
   34 
   35 /*-
   36  * Copyright (c) 1997 Manuel Bouyer.
   37  *
   38  * Redistribution and use in source and binary forms, with or without
   39  * modification, are permitted provided that the following conditions
   40  * are met:
   41  * 1. Redistributions of source code must retain the above copyright
   42  *    notice, this list of conditions and the following disclaimer.
   43  * 2. Redistributions in binary form must reproduce the above copyright
   44  *    notice, this list of conditions and the following disclaimer in the
   45  *    documentation and/or other materials provided with the distribution.
   46  * 3. All advertising materials mentioning features or use of this software
   47  *    must display the following acknowledgement:
   48  *      This product includes software developed by Manuel Bouyer.
   49  * 4. The name of the author may not be used to endorse or promote products
   50  *    derived from this software without specific prior written permission.
   51  *
   52  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   53  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   54  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   55  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   56  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   57  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   58  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   59  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   60  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   61  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   62  *
   63  *      @(#)ffs_extern.h        8.3 (Berkeley) 4/16/94
   64  * Modified for ext2fs by Manuel Bouyer.
   65  */
   66 
   67 #ifndef _UFS_EXT2FS_EXT2FS_EXTERN_H_
   68 #define _UFS_EXT2FS_EXT2FS_EXTERN_H_
   69 
   70 struct buf;
   71 struct fid;
   72 struct m_ext2fs;
   73 struct inode;
   74 struct mount;
   75 struct nameidata;
   76 struct proc;
   77 struct statfs;
   78 struct timeval;
   79 struct ucred;
   80 struct ufsmount;
   81 struct uio;
   82 struct vnode;
   83 struct mbuf;
   84 struct componentname;
   85 
   86 extern struct pool ext2fs_inode_pool;           /* memory pool for inodes */
   87 extern struct pool ext2fs_dinode_pool;          /* memory pool for dinodes */
   88 
   89 __BEGIN_DECLS
   90 
   91 /* ext2fs_alloc.c */
   92 int ext2fs_alloc __P((struct inode *, daddr_t, daddr_t , struct ucred *,
   93                    daddr_t *));
   94 int ext2fs_realloccg __P((struct inode *, daddr_t, daddr_t, int, int ,
   95                           struct ucred *, struct buf **));
   96 int ext2fs_reallocblks __P((void *));
   97 int ext2fs_valloc __P((void *));
   98 /* XXX ondisk32 */
   99 daddr_t ext2fs_blkpref __P((struct inode *, daddr_t, int, int32_t *));
  100 void ext2fs_blkfree __P((struct inode *, daddr_t));
  101 int ext2fs_vfree __P((void *));
  102 
  103 /* ext2fs_balloc.c */
  104 int ext2fs_balloc __P((struct inode *, daddr_t, int, struct ucred *,
  105                         struct buf **, int));
  106 int ext2fs_gop_alloc __P((struct vnode *, off_t, off_t, int, struct ucred *));
  107 
  108 /* ext2fs_bmap.c */
  109 int ext2fs_bmap __P((void *));
  110 
  111 /* ext2fs_inode.c */
  112 int ext2fs_update __P((void *));
  113 int ext2fs_truncate __P((void *));
  114 int ext2fs_inactive __P((void *));
  115 
  116 /* ext2fs_lookup.c */
  117 int ext2fs_readdir __P((void *));
  118 int ext2fs_lookup  __P((void *));
  119 int ext2fs_direnter __P((struct inode *, struct vnode *,
  120                          struct componentname *));
  121 int ext2fs_dirremove __P((struct vnode *, struct componentname *));
  122 int ext2fs_dirrewrite __P((struct inode *, struct inode *,
  123                            struct componentname *));
  124 int ext2fs_dirempty __P((struct inode *, ino_t, struct ucred *));
  125 int ext2fs_checkpath __P((struct inode *, struct inode *, struct ucred *));
  126 
  127 /* ext2fs_subr.c */
  128 int ext2fs_blkatoff __P((void *));
  129 void ext2fs_fragacct __P((struct m_ext2fs *, int, int32_t[], int));
  130 #ifdef DIAGNOSTIC
  131 void    ext2fs_checkoverlap __P((struct buf *, struct inode *));
  132 #endif
  133 
  134 /* ext2fs_vfsops.c */
  135 void ext2fs_init __P((void));
  136 void ext2fs_reinit __P((void));
  137 void ext2fs_done __P((void));
  138 int ext2fs_mountroot __P((void));
  139 int ext2fs_mount __P((struct mount *, const char *, void *, struct nameidata *,
  140                    struct proc *));
  141 int ext2fs_reload __P((struct mount *, struct ucred *, struct proc *));
  142 int ext2fs_mountfs __P((struct vnode *, struct mount *, struct proc *));
  143 int ext2fs_unmount __P((struct mount *, int, struct proc *));
  144 int ext2fs_flushfiles __P((struct mount *, int, struct proc *));
  145 int ext2fs_statfs __P((struct mount *, struct statfs *, struct proc *));
  146 int ext2fs_sync __P((struct mount *, int, struct ucred *, struct proc *));
  147 int ext2fs_vget __P((struct mount *, ino_t, struct vnode **));
  148 int ext2fs_fhtovp __P((struct mount *, struct fid *, struct vnode **));
  149 int ext2fs_vptofh __P((struct vnode *, struct fid *));
  150 int ext2fs_sbupdate __P((struct ufsmount *, int));
  151 int ext2fs_cgupdate __P((struct ufsmount *, int));
  152 
  153 /* ext2fs_readwrite.c */
  154 int ext2fs_read __P((void *));
  155 int ext2fs_write __P((void *));
  156 
  157 /* ext2fs_vnops.c */
  158 int ext2fs_create __P((void *));
  159 int ext2fs_mknod __P((void *));
  160 int ext2fs_open __P((void *));
  161 int ext2fs_access __P((void *));
  162 int ext2fs_getattr __P((void *));
  163 int ext2fs_setattr __P((void *));
  164 int ext2fs_remove __P((void *));
  165 int ext2fs_link __P((void *));
  166 int ext2fs_rename __P((void *));
  167 int ext2fs_mkdir __P((void *));
  168 int ext2fs_rmdir __P((void *));
  169 int ext2fs_symlink __P((void *));
  170 int ext2fs_readlink __P((void *));
  171 int ext2fs_advlock __P((void *));
  172 int ext2fs_vinit __P((struct mount *, int (**specops)(void *),
  173                       int (**fifoops)(void *), struct vnode **));
  174 int ext2fs_makeinode __P((int, struct vnode *, struct vnode **,
  175                           struct componentname *cnp));
  176 int ext2fs_reclaim __P((void *));
  177 
  178 #define ext2fs_fsync genfs_fsync
  179 
  180 #ifdef SYSCTL_SETUP_PROTO
  181 SYSCTL_SETUP_PROTO(sysctl_vfs_ext2fs_setup);
  182 #endif /* SYSCTL_SETUP_PROTO */
  183 __END_DECLS
  184 
  185 #define IS_EXT2_VNODE(vp)   (vp->v_tag == VT_EXT2FS)
  186 
  187 extern int (**ext2fs_vnodeop_p) __P((void *));
  188 extern int (**ext2fs_specop_p) __P((void *));
  189 extern int (**ext2fs_fifoop_p) __P((void *));
  190 
  191 #endif /* !_UFS_EXT2FS_EXT2FS_EXTERN_H_ */

Cache object: 15ba4c0ec3852fb84539847813337b81


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.