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/macros.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  * macros.h
    3  *
    4  * Copyright (C) 1995 Martin von Löwis
    5  * Copyright (C) 1996 Régis Duchesne
    6  * Copyright (c) 2001 Anton Altaparmakov
    7  */
    8 #include <linux/ntfs_fs_i.h>
    9 #include <linux/fs.h>
   10 #include <asm/page.h>
   11 
   12 #define NTFS_FD(vol)            ((vol)->u.fd)
   13 
   14 #define NTFS_SB(vol)            ((struct super_block*)(vol)->sb)
   15 #define NTFS_SB2VOL(sb)         (&(sb)->u.ntfs_sb)
   16 #define NTFS_INO2VOL(ino)       (&((ino)->i_sb->u.ntfs_sb))
   17 #define NTFS_LINO2NINO(ino)     ((struct ntfs_inode_info*)(&((ino)->u.ntfs_i)))
   18 static inline struct inode *VFS_I(struct ntfs_inode_info *ntfs_ino)
   19 {
   20         struct inode *i = (struct inode*)((char*)ntfs_ino -
   21                         ((char*)&(((struct inode*)NULL)->u.ntfs_i) -
   22                         (char*)NULL));
   23 #ifdef DEBUG
   24         if ((char*)NTFS_LINO2NINO(i) != (char*)ntfs_ino)
   25                 BUG();
   26 #endif
   27         return i;
   28 }
   29 
   30 #define IS_MAGIC(a,b)           (*(int*)(a) == *(int*)(b))
   31 #define IS_MFT_RECORD(a)        IS_MAGIC((a),"FILE")
   32 #define IS_INDEX_RECORD(a)      IS_MAGIC((a),"INDX")
   33 
   34 /* 'NTFS' in little endian */
   35 #define NTFS_SUPER_MAGIC        0x5346544E
   36 
   37 #define NTFS_AFLAG_RO           1
   38 #define NTFS_AFLAG_HIDDEN       2
   39 #define NTFS_AFLAG_SYSTEM       4
   40 #define NTFS_AFLAG_ARCHIVE      20
   41 #define NTFS_AFLAG_COMPRESSED   0x800
   42 #define NTFS_AFLAG_DIR          0x10000000
   43 

Cache object: 0a24aa1b172417e59689010d8808b247


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