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/fs/ext2fs/ext2_extern.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  *  modified for EXT2FS support in Lites 1.1
    3  *
    4  *  Aug 1995, Godmar Back (gback@cs.utah.edu)
    5  *  University of Utah, Department of Computer Science
    6  */
    7 /*-
    8  * Copyright (c) 1991, 1993, 1994
    9  *      The Regents of the University of California.  All rights reserved.
   10  *
   11  * Redistribution and use in source and binary forms, with or without
   12  * modification, are permitted provided that the following conditions
   13  * are met:
   14  * 1. Redistributions of source code must retain the above copyright
   15  *    notice, this list of conditions and the following disclaimer.
   16  * 2. Redistributions in binary form must reproduce the above copyright
   17  *    notice, this list of conditions and the following disclaimer in the
   18  *    documentation and/or other materials provided with the distribution.
   19  * 4. Neither the name of the University nor the names of its contributors
   20  *    may be used to endorse or promote products derived from this software
   21  *    without specific prior written permission.
   22  *
   23  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   26  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   27  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   28  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   29  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   30  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   32  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   33  * SUCH DAMAGE.
   34  *
   35  *      @(#)ffs_extern.h        8.3 (Berkeley) 4/16/94
   36  * $FreeBSD: releng/10.2/sys/fs/ext2fs/ext2_extern.h 281841 2015-04-22 00:38:11Z pfg $
   37  */
   38 
   39 #ifndef _FS_EXT2FS_EXT2_EXTERN_H_
   40 #define _FS_EXT2FS_EXT2_EXTERN_H_
   41 
   42 struct ext2fs_dinode;
   43 struct indir;
   44 struct inode;
   45 struct mount;
   46 struct vfsconf;
   47 struct vnode;
   48 
   49 int     ext2_alloc(struct inode *, daddr_t, e4fs_daddr_t, int,
   50             struct ucred *, e4fs_daddr_t *);
   51 int     ext2_balloc(struct inode *,
   52             e2fs_lbn_t, int, struct ucred *, struct buf **, int);
   53 int     ext2_blkatoff(struct vnode *, off_t, char **, struct buf **);
   54 void    ext2_blkfree(struct inode *,  e4fs_daddr_t, long);
   55 e4fs_daddr_t    ext2_blkpref(struct inode *, e2fs_lbn_t, int, e2fs_daddr_t *,
   56             e2fs_daddr_t);
   57 int     ext2_bmap(struct vop_bmap_args *);
   58 int     ext2_bmaparray(struct vnode *, daddr_t, daddr_t *, int *, int *);
   59 void    ext2_clusteracct(struct m_ext2fs *, char *, int, daddr_t, int);
   60 void    ext2_dirbad(struct inode *ip, doff_t offset, char *how);
   61 void    ext2_ei2i(struct ext2fs_dinode *, struct inode *);
   62 int     ext2_getlbns(struct vnode *, daddr_t, struct indir *, int *);
   63 void    ext2_i2ei(struct inode *, struct ext2fs_dinode *);
   64 void    ext2_itimes(struct vnode *vp);
   65 int     ext2_reallocblks(struct vop_reallocblks_args *);
   66 int     ext2_reclaim(struct vop_reclaim_args *);
   67 int     ext2_truncate(struct vnode *, off_t, int, struct ucred *, struct thread *);
   68 int     ext2_update(struct vnode *, int);
   69 int     ext2_valloc(struct vnode *, int, struct ucred *, struct vnode **);
   70 int     ext2_vfree(struct vnode *, ino_t, int);
   71 int     ext2_vinit(struct mount *, struct vop_vector *, struct vnode **vpp);
   72 int     ext2_lookup(struct vop_cachedlookup_args *);
   73 int     ext2_readdir(struct vop_readdir_args *);
   74 #ifdef EXT2FS_DEBUG
   75 void    ext2_print_inode(struct inode *);
   76 #endif
   77 int     ext2_direnter(struct inode *, 
   78                 struct vnode *, struct componentname *);
   79 int     ext2_dirremove(struct vnode *, struct componentname *);
   80 int     ext2_dirrewrite(struct inode *,
   81                 struct inode *, struct componentname *);
   82 int     ext2_dirempty(struct inode *, ino_t, struct ucred *);
   83 int     ext2_checkpath(struct inode *, struct inode *, struct ucred *);
   84 int     cg_has_sb(int i);
   85 int     ext2_inactive(struct vop_inactive_args *);
   86 
   87 /* Flags to low-level allocation routines.
   88  * The low 16-bits are reserved for IO_ flags from vnode.h.
   89  */
   90 #define BA_CLRBUF       0x00010000      /* Clear invalid areas of buffer. */
   91 #define BA_SEQMASK      0x7F000000      /* Bits holding seq heuristic. */
   92 #define BA_SEQSHIFT     24
   93 #define BA_SEQMAX       0x7F
   94 
   95 extern struct vop_vector ext2_vnodeops;
   96 extern struct vop_vector ext2_fifoops;
   97 
   98 #endif /* !_FS_EXT2FS_EXT2_EXTERN_H_ */

Cache object: 27aac8c9334a2414af093a662f0ff6c4


[ 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.