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

📄 file.h

📁 一个简单的操作系统minix的核心代码
💻 H
字号:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
				src/fs/file.h	 	 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

20300	/* This is the filp table.  It is an intermediary between file descriptors and
20301	 * inodes.  A slot is free if filp_count == 0.
20302	 */
20303	
20304	EXTERN struct filp {
20305	  mode_t filp_mode;             /* RW bits, telling how file is opened */
20306	  int filp_flags;               /* flags from open and fcntl */
20307	  int filp_count;               /* how many file descriptors share this slot?*/
20308	  struct inode *filp_ino;       /* pointer to the inode */
20309	  off_t filp_pos;               /* file position */
20310	} filp[NR_FILPS];
20311	
20312	#define FILP_CLOSED     0       /* filp_mode: associated device closed */
20313	
20314	#define NIL_FILP (struct filp *) 0      /* indicates absence of a filp slot */

⌨️ 快捷键说明

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