Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-28 20:25:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check whether two locks have the same owner.

Proto:static int posix_same_owner(struct file_lock *fl1, struct file_lock *fl2)

Type:int

Parameter:

TypeParameterName
struct file_lock *fl1
struct file_lock *fl2
662  Return fl_owner == fl_owner
Caller
NameDescribe
posix_locks_conflictDetermine if lock sys_fl blocks lock caller_fl. POSIX specific* checking before calling the locks_conflict().
what_owner_is_waiting_forFind a lock that the owner of the given block_fl is blocking on.
posix_locks_deadlockMust be called with the blocked_lock_lock held!
posix_lock_inode