Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:locks_release_private

Proto:void locks_release_private(struct file_lock *fl)

Type:void

Parameter:

TypeParameterName
struct file_lock *fl
357  BUG_ON(waitqueue_active -- locklessly test for waiters on the queue*@wq_head: the waitqueue to test for waiters* returns true if the wait list is not empty* NOTE: this function is lockless and requires care, incorrect usage _will_)
358  BUG_ON(!list_empty - tests whether a list is empty*@head: the list to test.)
359  BUG_ON(!list_empty - tests whether a list is empty*@head: the list to test.)
360  BUG_ON(!list_empty - tests whether a list is empty*@head: the list to test.)
361  BUG_ON(!hlist_unhashed( & node in global lists ))
363  If Callbacks for filesystems Then
364  If fl_release_private Then fl_release_private(fl)
366  Callbacks for filesystems = NULL
369  If Callbacks for lockmanagers Then
370  If lm_put_owner Then
372  fl_owner = NULL
374  Callbacks for lockmanagers = NULL
Caller
NameDescribe
locks_free_lockFree a lock which is not in use.