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

📄 kfs.h

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 H
字号:
typedef struct Qid9p1 Qid9p1;typedef struct Dentry Dentry;typedef struct Kfsfile Kfsfile;typedef struct Kfs Kfs;/* DONT TOUCH, this is the disk structure */struct	Qid9p1{	long	path;	long	version;};//#define	NAMELEN		28		/* size of names */#define	NDBLOCK		6		/* number of direct blocks in Dentry *//* DONT TOUCH, this is the disk structure */struct	Dentry{	char	name[NAMELEN];	short	uid;	short	gid;	ushort	mode;/*		#define	DALLOC	0x8000		#define	DDIR	0x4000		#define	DAPND	0x2000		#define	DLOCK	0x1000		#define	DREAD	0x4		#define	DWRITE	0x2		#define	DEXEC	0x1*/	Qid9p1	qid;	long	size;	long	dblock[NDBLOCK];	long	iblock;	long	diblock;	long	atime;	long	mtime;};struct Kfsfile{	Dentry;	long off;};struct Kfs{	int	RBUFSIZE;	int	BUFSIZE;	int	DIRPERBUF;	int	INDPERBUF;	int	INDPERBUF2;};extern int kfsinit(Fs*);

⌨️ 快捷键说明

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