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

📄 inode.h

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 H
字号:
typedef struct Ibuf	Ibuf;typedef struct Imap	Imap;typedef struct Icache	Icache;enum{	Nicache=	64,		/* number of inodes kept in pool */};/* *  a cached inode buffer */struct Ibuf{	Lru;			/* must be first in structure */	int	inuse;		/* non-0 if in use */	ulong	ino;		/* index into inode table */	Inode	inode;		/* the inode contents */};/* *  in-core qid to inode mapping */struct Imap{	Lru;			/* must be first in structure */	Qid	qid;	Ibuf	*b;		/* cache buffer */	int	inuse;		/* non-0 if in use */};/* *  the inode cache */struct Icache{	Disk;	int	nino;		/* number of inodes */	ulong	ib0;		/* first inode block */	int	nib;		/* number of inode blocks */	int	i2b;		/* inodes to a block */	Ibuf	ib[Nicache];	/* inode buffers */	Lru	blru;	Imap	*map;		/* inode to qid mapping */	Lru	mlru;};Ibuf*	ialloc(Icache*, ulong);Ibuf*	iget(Icache*, Qid);Ibuf*	iread(Icache*, ulong);int	iformat(Icache*, int, ulong, char*, int, int);int	iinit(Icache*, int, int);int	iremove(Icache*, ulong);int	iupdate(Icache*, ulong, Qid);int	iwrite(Icache*, Ibuf*);void	ifree(Icache*, Ibuf*);void	iinc(Icache*, Ibuf*);

⌨️ 快捷键说明

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