函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:audit_trim_trees

函数原型:void audit_trim_trees(void)

返回类型:void

参数:

685  mutex_lock( & audit_filter_mutex)
686  添加链表项
687 链表后项不等于tree_list循环
694  tree等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(链表后项, structaudit_tree, list)
695  get_tree(tree)
696  删除链表项
697  添加链表项
698  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.
700  err等于kern_path(pathname, 0, & path)
701  如果err则转到:skip_it
704  root_mnt等于collect_mounts( & path)
705  path_put( & path)
706  如果是错误则转到:skip_it
709  加自旋锁
711  chunk等于agging and untagging inodes with trees
713  index; upper bit indicates 'will prune' 或等于1U左移31位
714  如果iterate_mounts(compare_root, (void * )(key), root_mnt)则 index; upper bit indicates 'will prune' 与等于1U左移31位的值的反
719  自旋锁解锁
720  rim the uncommitted chunks from tree
721  drop_collected_mounts(root_mnt)
722  skip_it :
723  put_tree(tree)
724  mutex_lock( & audit_filter_mutex)
726  删除链表项
727  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.
调用者
名称描述
audit_receive_msg