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/ntfs/ntfs_subr.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: ntfs_subr.h,v 1.2 1999/05/06 15:43:20 christos Exp $   */
    2 
    3 /*-
    4  * Copyright (c) 1998, 1999 Semen Ustimenko
    5  * 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  *
   16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   19  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   20  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   21  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   22  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   23  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   24  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   25  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   26  * SUCH DAMAGE.
   27  *
   28  * $FreeBSD$
   29  */
   30 
   31 #define VA_LOADED               0x0001
   32 #define VA_PRELOADED            0x0002
   33 
   34 struct ntvattr {
   35         LIST_ENTRY(ntvattr)     va_list;
   36 
   37         u_int32_t               va_vflag;
   38         struct vnode           *va_vp;
   39         struct ntnode          *va_ip;
   40 
   41         u_int32_t               va_flag;
   42         u_int32_t               va_type;
   43         u_int8_t                va_namelen;
   44         char                    va_name[NTFS_MAXATTRNAME];
   45 
   46         u_int32_t               va_compression;
   47         u_int32_t               va_compressalg;
   48         u_int32_t               va_datalen;
   49         u_int32_t               va_allocated;
   50         cn_t                    va_vcnstart;
   51         cn_t                    va_vcnend;
   52         u_int16_t               va_index;
   53         union {
   54                 struct {
   55                         cn_t *          cn;
   56                         cn_t *          cl;
   57                         u_long          cnt;
   58                 } vrun;
   59                 caddr_t         datap;
   60                 struct attr_name *name;
   61                 struct attr_indexroot *iroot;
   62                 struct attr_indexalloc *ialloc;
   63         } va_d;
   64 };
   65 #define va_vruncn       va_d.vrun.cn
   66 #define va_vruncl       va_d.vrun.cl
   67 #define va_vruncnt      va_d.vrun.cnt
   68 #define va_datap        va_d.datap
   69 #define va_a_name       va_d.name
   70 #define va_a_iroot      va_d.iroot
   71 #define va_a_ialloc     va_d.ialloc
   72 
   73 
   74 #define uastrcmp(a,b,c,d)       ntfs_uastrcmp(ntmp,a,b,c,d)
   75 
   76 #ifndef NTFS_DEBUG
   77 #define ntfs_ntref(i)   (i)->i_usecount++
   78 #else
   79 #define ntfs_ntref(i)   {                                               \
   80         printf("ntfs_ntref: ino %d, usecount: %d\n",                    \
   81                 (i)->i_number, (i)->i_usecount++);                      \
   82 }
   83 #endif
   84 
   85 int ntfs_procfixups __P(( struct ntfsmount *, u_int32_t, caddr_t, size_t ));
   86 int ntfs_parserun __P(( cn_t *, cn_t *, u_int8_t *, u_long, u_long *));
   87 int ntfs_runtocn __P(( cn_t *, struct ntfsmount *, u_int8_t *, u_long, cn_t));
   88 int ntfs_readntvattr_plain __P(( struct ntfsmount *, struct ntnode *, struct ntvattr *, off_t, size_t, void *,size_t *));
   89 int ntfs_readattr_plain __P(( struct ntfsmount *, struct ntnode *, u_int32_t, char *, off_t, size_t, void *,size_t *));
   90 int ntfs_readattr __P(( struct ntfsmount *, struct ntnode *, u_int32_t, char *, off_t, size_t, void *));
   91 int ntfs_filesize __P(( struct ntfsmount *, struct fnode *, u_int64_t *, u_int64_t *));
   92 int ntfs_times __P(( struct ntfsmount *, struct ntnode *, ntfs_times_t *));
   93 struct timespec ntfs_nttimetounix __P(( u_int64_t ));
   94 int ntfs_ntreaddir __P(( struct ntfsmount *, struct fnode *, u_int32_t, struct attr_indexentry **));
   95 wchar ntfs_toupper __P(( struct ntfsmount *, wchar ));
   96 int ntfs_uustricmp __P(( struct ntfsmount *, wchar *, int, wchar *, int ));
   97 int ntfs_uastricmp __P(( struct ntfsmount *, const wchar *, int, const char *,
   98     int ));
   99 int ntfs_uastrcmp __P(( struct ntfsmount *, const wchar *, int, const char *,
  100     int ));
  101 int ntfs_runtovrun __P(( cn_t **, cn_t **, u_long *, u_int8_t *));
  102 int ntfs_attrtontvattr __P(( struct ntfsmount *, struct ntvattr **, struct attr * ));
  103 void ntfs_freentvattr __P(( struct ntvattr * ));
  104 int ntfs_loadntvattrs __P(( struct ntfsmount *, struct vnode *, caddr_t, struct ntvattr **));
  105 struct ntvattr * ntfs_findntvattr __P(( struct ntfsmount *, struct ntnode *, u_int32_t, cn_t ));
  106 int ntfs_ntlookupfile __P((struct ntfsmount *, struct vnode *, struct componentname *, struct vnode **));
  107 int ntfs_isnamepermitted __P((struct ntfsmount *, struct attr_indexentry * ));
  108 int ntfs_ntvattrrele __P((struct ntvattr * ));
  109 int ntfs_ntvattrget __P((struct ntfsmount *, struct ntnode *, u_int32_t, char *, cn_t , struct ntvattr **));
  110 int ntfs_ntlookup __P((struct ntfsmount *, ino_t, struct ntnode **));
  111 int ntfs_ntget __P((struct ntnode *));
  112 void ntfs_ntrele __P((struct ntnode *));
  113 void ntfs_ntput __P((struct ntnode *));
  114 int ntfs_loadntnode __P(( struct ntfsmount *, struct ntnode * ));
  115 int ntfs_ntlookupattr(struct ntfsmount *, const char *, int, int *, char **);
  116 int ntfs_writentvattr_plain(struct ntfsmount *, struct ntnode *, struct ntvattr *, off_t, size_t, void *, size_t *);
  117 int ntfs_writeattr_plain(struct ntfsmount *, struct ntnode *, u_int32_t, char *, off_t, size_t, void *, size_t *);

Cache object: 0699c6efec57f756556372619bf68355


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