函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Here comes the stuff asynchronous to auditctl operations

函数原型:static void evict_chunk(struct audit_chunk *chunk)

返回类型:void

参数:

类型参数名称
struct audit_chunk *chunk
1011  postponed等于audit_killed_trees()
1012  need_prune等于0
1015  mutex_lock( & audit_filter_mutex)
1016  加自旋锁
1017  当非链表为空循环
1018  owner等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(链表后项, structaudit_tree, same_root)
1020  goner等于1
1021  root = NULL
1022  删除链表项并重新初始化
1023  自旋锁解锁
1024  如果非postponed
1027  need_prune等于1
1028  否则
1031  加自旋锁
1033  删除不需要重新初始化的列表项
1034 n小于count循环删除链表项并重新初始化
1036  自旋锁解锁
1037  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.
1038  如果need_pruneaudit_schedule_prune()
调用者
名称描述
audit_tree_freeing_mark