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/ntfs/ntfs_subr.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 /*      $NetBSD: ntfs_subr.h,v 1.6 2007/03/04 06:03:00 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  *      Id: ntfs_subr.h,v 1.4 1999/05/12 09:43:02 semenu Exp
   29  */
   30 #if !defined(_KERNEL)
   31 #error not supposed to be exposed to userland.
   32 #endif
   33 
   34 #define VA_LOADED               0x0001
   35 #define VA_PRELOADED            0x0002
   36 
   37 struct ntvattr {
   38         LIST_ENTRY(ntvattr)     va_list;
   39 
   40         u_int32_t               va_vflag;
   41         struct vnode           *va_vp;
   42         struct ntnode          *va_ip;
   43 
   44         u_int32_t               va_flag;
   45         u_int32_t               va_type;
   46         u_int8_t                va_namelen;
   47         char                    va_name[NTFS_MAXATTRNAME];
   48 
   49         u_int32_t               va_compression;
   50         u_int32_t               va_compressalg;
   51         u_int64_t               va_datalen;
   52         u_int64_t               va_allocated;
   53         cn_t                    va_vcnstart;
   54         cn_t                    va_vcnend;
   55         u_int16_t               va_index;
   56         union {
   57                 struct {
   58                         cn_t *          cn;
   59                         cn_t *          cl;
   60                         u_long          cnt;
   61                 } vrun;
   62                 void *          datap;
   63                 struct attr_name *name;
   64                 struct attr_indexroot *iroot;
   65                 struct attr_indexalloc *ialloc;
   66         } va_d;
   67 };
   68 #define va_vruncn       va_d.vrun.cn
   69 #define va_vruncl       va_d.vrun.cl
   70 #define va_vruncnt      va_d.vrun.cnt
   71 #define va_datap        va_d.datap
   72 #define va_a_name       va_d.name
   73 #define va_a_iroot      va_d.iroot
   74 #define va_a_ialloc     va_d.ialloc
   75 
   76 int ntfs_procfixups(struct ntfsmount *, u_int32_t, void *, size_t);
   77 int ntfs_parserun(cn_t *, cn_t *, u_int8_t *, u_long, u_long *);
   78 int ntfs_runtocn(cn_t *, struct ntfsmount *, u_int8_t *, u_long, cn_t);
   79 int ntfs_readntvattr_plain(struct ntfsmount *, struct ntnode *,
   80         struct ntvattr *, off_t, size_t, void *,size_t *, struct uio *);
   81 int ntfs_readattr_plain(struct ntfsmount *, struct ntnode *, u_int32_t,
   82         const char *, off_t, size_t, void *,size_t *, struct uio *);
   83 int ntfs_readattr(struct ntfsmount *, struct ntnode *, u_int32_t,
   84         const char *, off_t, size_t, void *, struct uio *);
   85 int ntfs_filesize(struct ntfsmount *, struct fnode *, u_int64_t *,
   86         u_int64_t *);
   87 int ntfs_times(struct ntfsmount *, struct ntnode *, ntfs_times_t *);
   88 struct timespec ntfs_nttimetounix(u_int64_t);
   89 int ntfs_ntreaddir(struct ntfsmount *, struct fnode *, u_int32_t,
   90         struct attr_indexentry **);
   91 int ntfs_runtovrun(cn_t **, cn_t **, u_long *, u_int8_t *);
   92 int ntfs_attrtontvattr(struct ntfsmount *, struct ntvattr **, struct attr *);
   93 void ntfs_freentvattr(struct ntvattr *);
   94 int ntfs_loadntvattrs(struct ntfsmount *, struct vnode *, void *,
   95         struct ntvattr **);
   96 struct ntvattr * ntfs_findntvattr(struct ntfsmount *, struct ntnode *,
   97         u_int32_t, cn_t);
   98 int ntfs_ntlookupfile(struct ntfsmount *, struct vnode *,
   99         struct componentname *, struct vnode **);
  100 int ntfs_isnamepermitted(struct ntfsmount *, struct attr_indexentry *);
  101 int ntfs_ntvattrrele(struct ntvattr *);
  102 int ntfs_ntvattrget(struct ntfsmount *, struct ntnode *, u_int32_t,
  103         const char *, cn_t , struct ntvattr **);
  104 int ntfs_ntlookup(struct ntfsmount *, ino_t, struct ntnode **);
  105 int ntfs_ntget(struct ntnode *);
  106 void ntfs_ntref(struct ntnode *);
  107 void ntfs_ntrele(struct ntnode *);
  108 void ntfs_ntput(struct ntnode *);
  109 int ntfs_loadntnode(struct ntfsmount *, struct ntnode *);
  110 int ntfs_writentvattr_plain(struct ntfsmount *, struct ntnode *,
  111         struct ntvattr *, off_t, size_t, void *, size_t *, struct uio *);
  112 int ntfs_writeattr_plain(struct ntfsmount *, struct ntnode *, u_int32_t,
  113         char *, off_t, size_t, void *, size_t *, struct uio *);
  114 void ntfs_toupper_init(void);
  115 int ntfs_toupper_use(struct mount *, struct ntfsmount *);
  116 void ntfs_toupper_unuse(void);
  117 int ntfs_fget(struct ntfsmount *, struct ntnode *, int, char *,
  118         struct fnode **);
  119 void ntfs_frele(struct fnode *);
  120 
  121 /* ntfs_conv.c stuff */
  122 ntfs_wget_func_t ntfs_utf8_wget;
  123 ntfs_wput_func_t ntfs_utf8_wput;
  124 ntfs_wcmp_func_t ntfs_utf8_wcmp;

Cache object: 28392fb25942ee56e96be9dc8bb91546


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