lock.h
来自「一个简单的操作系统minix的核心代码」· C头文件 代码 · 共 15 行
H
15 行
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
src/fs/lock.h
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
20400 /* This is the file locking table. Like the filp table, it points to the
20401 * inode table, however, in this case to achieve advisory locking.
20402 */
20403 EXTERN struct file_lock {
20404 short lock_type; /* F_RDLOCK or F_WRLOCK; 0 means unused slot */
20405 pid_t lock_pid; /* pid of the process holding the lock */
20406 struct inode *lock_inode; /* pointer to the inode locked */
20407 off_t lock_first; /* offset of first byte locked */
20408 off_t lock_last; /* offset of last byte locked */
20409 } file_lock[NR_LOCKS];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?