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

Go to the source code of this file.

Data Structures

struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  jffs2_unknown_node
 
struct  jffs2_raw_dirent
 
struct  jffs2_raw_inode
 
struct  jffs2_raw_xattr
 
struct  jffs2_raw_xref
 
struct  jffs2_raw_summary
 
union  jffs2_node_union
 
union  jffs2_device_node
 

Macros

#define JFFS2_OLD_MAGIC_BITMASK   0x1984
 
#define JFFS2_MAGIC_BITMASK   0x1985
 
#define KSAMTIB_CIGAM_2SFFJ   0x8519 /* For detecting wrong-endian fs */
 
#define JFFS2_EMPTY_BITMASK   0xffff
 
#define JFFS2_DIRTY_BITMASK   0x0000
 
#define JFFS2_SUM_MAGIC   0x02851885
 
#define JFFS2_MAX_NAME_LEN   254
 
#define JFFS2_MIN_DATA_LEN   128
 
#define JFFS2_COMPR_NONE   0x00
 
#define JFFS2_COMPR_ZERO   0x01
 
#define JFFS2_COMPR_RTIME   0x02
 
#define JFFS2_COMPR_RUBINMIPS   0x03
 
#define JFFS2_COMPR_COPY   0x04
 
#define JFFS2_COMPR_DYNRUBIN   0x05
 
#define JFFS2_COMPR_ZLIB   0x06
 
#define JFFS2_COMPR_LZO   0x07
 
#define JFFS2_COMPAT_MASK   0xc000 /* What do to if an unknown nodetype is found */
 
#define JFFS2_NODE_ACCURATE   0x2000
 
#define JFFS2_FEATURE_INCOMPAT   0xc000
 
#define JFFS2_FEATURE_ROCOMPAT   0x8000
 
#define JFFS2_FEATURE_RWCOMPAT_COPY   0x4000
 
#define JFFS2_FEATURE_RWCOMPAT_DELETE   0x0000
 
#define JFFS2_NODETYPE_DIRENT   (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 1)
 
#define JFFS2_NODETYPE_INODE   (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 2)
 
#define JFFS2_NODETYPE_CLEANMARKER   (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 3)
 
#define JFFS2_NODETYPE_PADDING   (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 4)
 
#define JFFS2_NODETYPE_SUMMARY   (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 6)
 
#define JFFS2_NODETYPE_XATTR   (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 8)
 
#define JFFS2_NODETYPE_XREF   (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 9)
 
#define JFFS2_XPREFIX_USER   1 /* for "user." */
 
#define JFFS2_XPREFIX_SECURITY   2 /* for "security." */
 
#define JFFS2_XPREFIX_ACL_ACCESS   3 /* for "system.posix_acl_access" */
 
#define JFFS2_XPREFIX_ACL_DEFAULT   4 /* for "system.posix_acl_default" */
 
#define JFFS2_XPREFIX_TRUSTED   5 /* for "trusted.*" */
 
#define JFFS2_ACL_VERSION   0x0001
 
#define JFFS2_INO_FLAG_PREREAD
 
#define JFFS2_INO_FLAG_USERCOMPR
 

Functions

struct jffs2_raw_xattr __attribute__ ((packed))
 

Variables

jint16_t magic
 
jint16_t nodetype
 
jint32_t totlen
 
jint32_t hdr_crc
 
jint32_t xid
 
jint32_t version
 
__u8 xprefix
 
__u8 name_len
 
jint16_t value_len
 
jint32_t data_crc
 
jint32_t node_crc
 
__u8 data [0]
 
jint32_t ino
 
jint32_t xseqno
 
struct jffs2_raw_summary __attribute__
 

Macro Definition Documentation

#define JFFS2_ACL_VERSION   0x0001

Definition at line 78 of file jffs2.h.

#define JFFS2_COMPAT_MASK   0xc000 /* What do to if an unknown nodetype is found */

Definition at line 50 of file jffs2.h.

#define JFFS2_COMPR_COPY   0x04

Definition at line 45 of file jffs2.h.

#define JFFS2_COMPR_DYNRUBIN   0x05

Definition at line 46 of file jffs2.h.

#define JFFS2_COMPR_LZO   0x07

Definition at line 48 of file jffs2.h.

#define JFFS2_COMPR_NONE   0x00

Definition at line 41 of file jffs2.h.

#define JFFS2_COMPR_RTIME   0x02

Definition at line 43 of file jffs2.h.

#define JFFS2_COMPR_RUBINMIPS   0x03

Definition at line 44 of file jffs2.h.

#define JFFS2_COMPR_ZERO   0x01

Definition at line 42 of file jffs2.h.

#define JFFS2_COMPR_ZLIB   0x06

Definition at line 47 of file jffs2.h.

#define JFFS2_DIRTY_BITMASK   0x0000

Definition at line 28 of file jffs2.h.

#define JFFS2_EMPTY_BITMASK   0xffff

Definition at line 27 of file jffs2.h.

#define JFFS2_FEATURE_INCOMPAT   0xc000

Definition at line 53 of file jffs2.h.

#define JFFS2_FEATURE_ROCOMPAT   0x8000

Definition at line 55 of file jffs2.h.

#define JFFS2_FEATURE_RWCOMPAT_COPY   0x4000

Definition at line 57 of file jffs2.h.

#define JFFS2_FEATURE_RWCOMPAT_DELETE   0x0000

Definition at line 59 of file jffs2.h.

#define JFFS2_INO_FLAG_PREREAD
Value:
1 /* Do read_inode() for this one at
mount time, don't wait for it to
happen later */

Definition at line 85 of file jffs2.h.

#define JFFS2_INO_FLAG_USERCOMPR
Value:
2 /* User has requested a specific
compression type */

Definition at line 86 of file jffs2.h.

#define JFFS2_MAGIC_BITMASK   0x1985

Definition at line 25 of file jffs2.h.

#define JFFS2_MAX_NAME_LEN   254

Definition at line 36 of file jffs2.h.

#define JFFS2_MIN_DATA_LEN   128

Definition at line 39 of file jffs2.h.

#define JFFS2_NODE_ACCURATE   0x2000

Definition at line 51 of file jffs2.h.

#define JFFS2_NODETYPE_CLEANMARKER   (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 3)

Definition at line 63 of file jffs2.h.

#define JFFS2_NODETYPE_DIRENT   (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 1)

Definition at line 61 of file jffs2.h.

#define JFFS2_NODETYPE_INODE   (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 2)

Definition at line 62 of file jffs2.h.

#define JFFS2_NODETYPE_PADDING   (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 4)

Definition at line 64 of file jffs2.h.

#define JFFS2_NODETYPE_SUMMARY   (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 6)

Definition at line 66 of file jffs2.h.

#define JFFS2_NODETYPE_XATTR   (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 8)

Definition at line 68 of file jffs2.h.

#define JFFS2_NODETYPE_XREF   (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 9)

Definition at line 69 of file jffs2.h.

#define JFFS2_OLD_MAGIC_BITMASK   0x1984

Definition at line 24 of file jffs2.h.

#define JFFS2_SUM_MAGIC   0x02851885

Definition at line 31 of file jffs2.h.

#define JFFS2_XPREFIX_ACL_ACCESS   3 /* for "system.posix_acl_access" */

Definition at line 74 of file jffs2.h.

#define JFFS2_XPREFIX_ACL_DEFAULT   4 /* for "system.posix_acl_default" */

Definition at line 75 of file jffs2.h.

#define JFFS2_XPREFIX_SECURITY   2 /* for "security." */

Definition at line 73 of file jffs2.h.

#define JFFS2_XPREFIX_TRUSTED   5 /* for "trusted.*" */

Definition at line 76 of file jffs2.h.

#define JFFS2_XPREFIX_USER   1 /* for "user." */

Definition at line 72 of file jffs2.h.

#define KSAMTIB_CIGAM_2SFFJ   0x8519 /* For detecting wrong-endian fs */

Definition at line 26 of file jffs2.h.

Function Documentation

struct jffs2_raw_xattr __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

__u8 data[0]

Definition at line 188 of file jffs2.h.

jint32_t data_crc

Definition at line 186 of file jffs2.h.

jint32_t hdr_crc

Definition at line 180 of file jffs2.h.

jint32_t ino

Definition at line 193 of file jffs2.h.

jint16_t magic

Definition at line 177 of file jffs2.h.

__u8 name_len

Definition at line 184 of file jffs2.h.

jint32_t node_crc

Definition at line 187 of file jffs2.h.

jint16_t nodetype

Definition at line 178 of file jffs2.h.

jint32_t totlen

Definition at line 179 of file jffs2.h.

jint16_t value_len

Definition at line 185 of file jffs2.h.

jint32_t version

Definition at line 182 of file jffs2.h.

jint32_t xid

Definition at line 181 of file jffs2.h.

__u8 xprefix

Definition at line 183 of file jffs2.h.

jint32_t xseqno

Definition at line 195 of file jffs2.h.