file.h
来自「一个简单的操作系统minix的核心代码」· C头文件 代码 · 共 20 行
H
20 行
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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 + =
减小字号Ctrl + -
显示快捷键?