⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jffs2.h

📁 jffs2源码研究分析 全文分为 jffs2的数据实体及其内核描述符 描述jffs2特性的数据结构 注册文件系统 挂载文件系统 打开文件时建立inode的方法 jffs2中写正
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -