函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:locks_insert_global_blocked

函数原型:static void locks_insert_global_blocked(struct file_lock *waiter)

返回类型:void

参数:

类型参数名称
struct file_lock *waiter
707  lockdep_assert_held( & This lock protects the blocked_hash. Generally, if you're accessing it, you* want to be holding this lock.* In addition, it also protects the fl->fl_blocked_requests list, and the* fl->fl_blocker pointer for file_lock structures that are acting as lock)
709  hash_add - add an object to a hashtable*@hashtable: hashtable to add to*@node: the &struct hlist_node of the object to be added*@key: the key of the object to be added(blocked_hash, & node in global lists , posix_owner_key(waiter))
调用者
名称描述
__locks_insert_blockInsert 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.