函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static void prune_tree_chunks(struct audit_tree *victim, bool tagged)

返回类型:void

参数:

类型参数名称
struct audit_tree *victim
booltagged
575  加自旋锁
576  当非链表为空循环
581  p等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & chunks, structnode, list)
583  如果tagged且非 index; upper bit indicates 'will prune' 按位与1U左移31位的值则退出
585  chunk等于agging and untagging inodes with trees
586  mark等于mark
587  remove_chunk_node(chunk, p)
589  如果非mark则继续下一循环
591  fsnotify_get_mark(mark)
592  自旋锁解锁
594  untag_chunk(chunk, mark)
595  fsnotify_put_mark(mark)
597  加自旋锁
599  自旋锁解锁
600  put_tree(victim)
调用者
名称描述
prune_onesh killing struct audit_tree
trim_markedrim the uncommitted chunks from tree