函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rim the uncommitted chunks from tree

函数原型:static void trim_marked(struct audit_tree *tree)

返回类型:void

参数:

类型参数名称
struct audit_tree *tree
616  加自旋锁
617  如果goner
618  自旋锁解锁
619  返回
622 p不等于chunks循环
623  node等于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.(p, structnode, list)
624  q等于链表后项
625  如果 index; upper bit indicates 'will prune' 按位与1U左移31位则
630  自旋锁解锁
632  Remove tree from chunks. If 'tagged' is set, remove tree only from tagged* chunks. The function expects tagged chunks are all at the beginning of the* chunks list.
634  加自旋锁
635  如果非root且非goner
636  goner等于1
637  自旋锁解锁
638  mutex_lock( & audit_filter_mutex)
639  kill_rules(audit_context(), tree)
640  删除链表项并重新初始化
641  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.
642  sh killing struct audit_tree
643  否则
644  自旋锁解锁
调用者
名称描述
audit_trim_trees
audit_add_tree_rulealled with audit_filter_mutex
audit_tag_tree