Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit_tree.c Create Date:2022-07-28 11:30:57
Last Modify:2022-05-22 16:43:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:audit_tree_freeing_mark

Proto:static void audit_tree_freeing_mark(struct fsnotify_mark *mark, struct fsnotify_group *group)

Type:void

Parameter:

TypeParameterName
struct fsnotify_mark *mark
struct fsnotify_group *group
1056  mutex_lock( & protect marks_list )
1057  spin_lock( & hash_lock)
1058  chunk = mark_chunk(mark)
1059  replace_mark_chunk(mark, NULL)
1060  spin_unlock( & hash_lock)
1061  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1062  If chunk Then
1063  Here comes the stuff asynchronous to auditctl operations
1064  Drop reference to the chunk that was held by the mark. This is the reference* that gets dropped after we've removed the chunk from the hash table and we* use it to make sure chunk cannot be freed before RCU grace period expires.
1071  BUG_ON(_read - get a refcount's value*@r: the refcount* Return: the refcount's value < 1)