jffs2.h

来自「jffs2源码研究分析 全文分为 jffs2的数据实体及其内核描述符 描」· C头文件 代码 · 共 41 行

H
41 行
字号
#ifndef	_JFFS2_H_
#define _JFFS2_H_

/*
 * Stuffs grabbed from fs/jffs2/
 */

struct jffs2_raw_node_ref
{
	struct jffs2_raw_node_ref *next_in_ino; 
	struct jffs2_raw_node_ref *next_phys;
	uint32_t flash_offset;
	uint32_t totlen;	
};

struct jffs2_full_dirent
{
	struct jffs2_raw_node_ref *raw;
	struct jffs2_full_dirent *next;
	uint32_t version;
	uint32_t ino; /* == zero for unlink */
	unsigned int nhash;
	unsigned char type;
	unsigned char name[0];
};

struct jffs2_inode_cache {
	struct jffs2_full_dirent *scan_dents; 
	struct jffs2_inode_cache *next;
	struct jffs2_raw_node_ref *nodes;	
	uint32_t ino;
	int nlink;	
	int state;
};

#define INOCACHE_HASHSIZE 128
#define ref_flags(ref) ((ref)->flash_offset & 3)
#define ref_offset(ref) ((ref)->flash_offset & ~3)

#endif /* _JFFS2_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?