type.h

来自「一个简单的操作系统minix的核心代码」· C头文件 代码 · 共 28 行

H
28
字号
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
				src/fs/type.h	 	 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

19600	/* Declaration of the V1 inode as it is on the disk (not in core). */
19601	typedef struct {                /* V1.x disk inode */
19602	  mode_t d1_mode;               /* file type, protection, etc. */
19603	  uid_t d1_uid;                 /* user id of the file's owner */
19604	  off_t d1_size;                /* current file size in bytes */
19605	  time_t d1_mtime;              /* when was file data last changed */
19606	  gid_t d1_gid;                 /* group number */
19607	  nlink_t d1_nlinks;            /* how many links to this file */
19608	  u16_t d1_zone[V1_NR_TZONES];  /* block nums for direct, ind, and dbl ind */
19609	} d1_inode;
19610	
19611	/* Declaration of the V2 inode as it is on the disk (not in core). */
19612	typedef struct {                /* V2.x disk inode */
19613	  mode_t d2_mode;               /* file type, protection, etc. */
19614	  u16_t d2_nlinks;              /* how many links to this file. HACK! */
19615	  uid_t d2_uid;                 /* user id of the file's owner. */
19616	  u16_t d2_gid;                 /* group number HACK! */
19617	  off_t d2_size;                /* current file size in bytes */
19618	  time_t d2_atime;              /* when was file data last accessed */
19619	  time_t d2_mtime;              /* when was file data last changed */
19620	  time_t d2_ctime;              /* when was inode data last changed */
19621	  zone_t d2_zone[V2_NR_TZONES]; /* block nums for direct, ind, and dbl ind */
19622	} d2_inode;

⌨️ 快捷键说明

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