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/ufs/ufs_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 /*-
    2  * Copyright (c) 1991, 1993, 1994
    3  *      The Regents of the University of California.  All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer.
   10  * 2. Redistributions in binary form must reproduce the above copyright
   11  *    notice, this list of conditions and the following disclaimer in the
   12  *    documentation and/or other materials provided with the distribution.
   13  * 4. Neither the name of the University nor the names of its contributors
   14  *    may be used to endorse or promote products derived from this software
   15  *    without specific prior written permission.
   16  *
   17  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   20  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   27  * SUCH DAMAGE.
   28  *
   29  *      @(#)ufs_extern.h        8.10 (Berkeley) 5/14/95
   30  * $FreeBSD$
   31  */
   32 
   33 #ifndef _UFS_UFS_EXTERN_H_
   34 #define _UFS_UFS_EXTERN_H_
   35 
   36 struct componentname;
   37 struct direct;
   38 struct indir;
   39 struct inode;
   40 struct mount;
   41 struct netcred;
   42 struct thread;
   43 struct sockaddr;
   44 struct ucred;
   45 struct ufid;
   46 struct vfsconf;
   47 struct vnode;
   48 struct vop_bmap_args;
   49 struct vop_cachedlookup_args;
   50 struct vop_generic_args;
   51 struct vop_inactive_args;
   52 struct vop_reclaim_args;
   53 
   54 extern struct vop_vector ufs_fifoops;
   55 extern struct vop_vector ufs_vnodeops;
   56 
   57 int      ufs_bmap(struct vop_bmap_args *);
   58 int      ufs_bmaparray(struct vnode *, ufs2_daddr_t, ufs2_daddr_t *,
   59             struct buf *, int *, int *);
   60 int      ufs_fhtovp(struct mount *, struct ufid *, struct vnode **);
   61 int      ufs_checkpath(ino_t, struct inode *, struct ucred *);
   62 void     ufs_dirbad(struct inode *, doff_t, char *);
   63 int      ufs_dirbadentry(struct vnode *, struct direct *, int);
   64 int      ufs_dirempty(struct inode *, ino_t, struct ucred *);
   65 int      ufs_extread(struct vop_read_args *);
   66 int      ufs_extwrite(struct vop_write_args *);
   67 void     ufs_makedirentry(struct inode *, struct componentname *,
   68             struct direct *);
   69 int      ufs_direnter(struct vnode *, struct vnode *, struct direct *,
   70             struct componentname *, struct buf *);
   71 int      ufs_dirremove(struct vnode *, struct inode *, int, int);
   72 int      ufs_dirrewrite(struct inode *, struct inode *, ino_t, int, int);
   73 int      ufs_getlbns(struct vnode *, ufs2_daddr_t, struct indir *, int *);
   74 int      ufs_inactive(struct vop_inactive_args *);
   75 int      ufs_init(struct vfsconf *);
   76 void     ufs_itimes(struct vnode *vp);
   77 int      ufs_lookup(struct vop_cachedlookup_args *);
   78 int      ufs_readdir(struct vop_readdir_args *);
   79 int      ufs_reclaim(struct vop_reclaim_args *);
   80 void     ffs_snapgone(struct inode *);
   81 vfs_root_t ufs_root;
   82 int      ufs_uninit(struct vfsconf *);
   83 int      ufs_vinit(struct mount *, struct vop_vector *, struct vnode **);
   84 
   85 /*
   86  * Soft update function prototypes.
   87  */
   88 int     softdep_setup_directory_add(struct buf *, struct inode *, off_t,
   89             ino_t, struct buf *, int);
   90 void    softdep_change_directoryentry_offset(struct inode *, caddr_t,
   91             caddr_t, caddr_t, int);
   92 void    softdep_setup_remove(struct buf *,struct inode *, struct inode *, int);
   93 void    softdep_setup_directory_change(struct buf *, struct inode *,
   94             struct inode *, ino_t, int);
   95 void    softdep_change_linkcnt(struct inode *);
   96 void    softdep_releasefile(struct inode *);
   97 int     softdep_slowdown(struct vnode *);
   98 
   99 /*
  100  * Flags to low-level allocation routines.  The low 16-bits are reserved
  101  * for IO_ flags from vnode.h.
  102  *
  103  * Note: The general vfs code typically limits the sequential heuristic
  104  * count to 127.  See sequential_heuristic() in kern/vfs_vnops.c
  105  */
  106 #define BA_CLRBUF       0x00010000      /* Clear invalid areas of buffer. */
  107 #define BA_METAONLY     0x00020000      /* Return indirect block buffer. */
  108 #define BA_SEQMASK      0x7F000000      /* Bits holding seq heuristic. */
  109 #define BA_SEQSHIFT     24
  110 #define BA_SEQMAX       0x7F
  111 
  112 #endif /* !_UFS_UFS_EXTERN_H_ */

Cache object: 20d94b79e95037d5ceb9dd5d2a877a6a


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