函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-29 10:59:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Must be called with flc_lock held.

函数原型:static void locks_insert_block(struct file_lock *blocker, struct file_lock *waiter, conflict(struct file_lock*,struct file_lock*))

返回类型:void

参数:

类型参数名称
struct file_lock *blocker
struct file_lock *waiter
boolconflict
827  加自旋锁
828  Insert waiter into blocker's block list.* We use a circular list so that processes can be easily woken up in* the order they blocked. The documentation doesn't require this but* it seems like the reasonable thing to do.
829  自旋锁解锁
调用者
名称描述
flock_lock_inodeTry to create a FLOCK lock on filp
__break_lease撤销所有未偿还的文件