Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
romfs_fs.h File Reference
#include <linux/types.h>
#include <linux/fs.h>

Go to the source code of this file.

Data Structures

struct  romfs_super_block
 
struct  romfs_inode
 

Macros

#define ROMBSIZE   BLOCK_SIZE
 
#define ROMBSBITS   BLOCK_SIZE_BITS
 
#define ROMBMASK   (ROMBSIZE-1)
 
#define ROMFS_MAGIC   0x7275
 
#define ROMFS_MAXFN   128
 
#define __mkw(h, l)   (((h)&0x00ff)<< 8|((l)&0x00ff))
 
#define __mkl(h, l)   (((h)&0xffff)<<16|((l)&0xffff))
 
#define __mk4(a, b, c, d)   cpu_to_be32(__mkl(__mkw(a,b),__mkw(c,d)))
 
#define ROMSB_WORD0   __mk4('-','r','o','m')
 
#define ROMSB_WORD1   __mk4('1','f','s','-')
 
#define ROMFH_TYPE   7
 
#define ROMFH_HRD   0
 
#define ROMFH_DIR   1
 
#define ROMFH_REG   2
 
#define ROMFH_SYM   3
 
#define ROMFH_BLK   4
 
#define ROMFH_CHR   5
 
#define ROMFH_SCK   6
 
#define ROMFH_FIF   7
 
#define ROMFH_EXEC   8
 
#define ROMFH_SIZE   16
 
#define ROMFH_PAD   (ROMFH_SIZE-1)
 
#define ROMFH_MASK   (~ROMFH_PAD)
 

Variables

struct romfs_super_block __attribute__
 

Macro Definition Documentation

#define __mk4 (   a,
  b,
  c,
  d 
)    cpu_to_be32(__mkl(__mkw(a,b),__mkw(c,d)))

Definition at line 18 of file romfs_fs.h.

#define __mkl (   h,
  l 
)    (((h)&0xffff)<<16|((l)&0xffff))

Definition at line 17 of file romfs_fs.h.

#define __mkw (   h,
  l 
)    (((h)&0x00ff)<< 8|((l)&0x00ff))

Definition at line 16 of file romfs_fs.h.

#define ROMBMASK   (ROMBSIZE-1)

Definition at line 11 of file romfs_fs.h.

#define ROMBSBITS   BLOCK_SIZE_BITS

Definition at line 10 of file romfs_fs.h.

#define ROMBSIZE   BLOCK_SIZE

Definition at line 9 of file romfs_fs.h.

#define ROMFH_BLK   4

Definition at line 47 of file romfs_fs.h.

#define ROMFH_CHR   5

Definition at line 48 of file romfs_fs.h.

#define ROMFH_DIR   1

Definition at line 44 of file romfs_fs.h.

#define ROMFH_EXEC   8

Definition at line 51 of file romfs_fs.h.

#define ROMFH_FIF   7

Definition at line 50 of file romfs_fs.h.

#define ROMFH_HRD   0

Definition at line 43 of file romfs_fs.h.

#define ROMFH_MASK   (~ROMFH_PAD)

Definition at line 57 of file romfs_fs.h.

#define ROMFH_PAD   (ROMFH_SIZE-1)

Definition at line 56 of file romfs_fs.h.

#define ROMFH_REG   2

Definition at line 45 of file romfs_fs.h.

#define ROMFH_SCK   6

Definition at line 49 of file romfs_fs.h.

#define ROMFH_SIZE   16

Definition at line 55 of file romfs_fs.h.

#define ROMFH_SYM   3

Definition at line 46 of file romfs_fs.h.

#define ROMFH_TYPE   7

Definition at line 42 of file romfs_fs.h.

#define ROMFS_MAGIC   0x7275

Definition at line 12 of file romfs_fs.h.

#define ROMFS_MAXFN   128

Definition at line 14 of file romfs_fs.h.

#define ROMSB_WORD0   __mk4('-','r','o','m')

Definition at line 19 of file romfs_fs.h.

#define ROMSB_WORD1   __mk4('1','f','s','-')

Definition at line 20 of file romfs_fs.h.

Variable Documentation