函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit_tree.c Create Date:2022-07-27 12:34:24
Last Modify:2022-05-22 16:43:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:audit_tree_freeing_mark

函数原型:static void audit_tree_freeing_mark(struct fsnotify_mark *mark, struct fsnotify_group *group)

返回类型:void

参数:

类型参数名称
struct fsnotify_mark *mark
struct fsnotify_group *group
1056  mutex_lock( & protect marks_list )
1057  加自旋锁
1058  chunk等于mark_chunk(mark)
1059  replace_mark_chunk(mark, NULL)
1060  自旋锁解锁
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  如果chunk
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)