Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit_tree.c Create Date:2022-07-28 11:30:37
Last Modify:2022-05-22 16:43:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:audit_trim_trees

Proto:void audit_trim_trees(void)

Type:void

Parameter:Nothing

685  mutex_lock( & audit_filter_mutex)
686  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
687  When next != tree_list cycle
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.(next, structaudit_tree, list)
695  get_tree(tree)
696  deletes entry from list
697  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
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  If err Then Go to skip_it
704  root_mnt = collect_mounts( & path)
705  path_put( & path)
706  If IS_ERR(root_mnt) Then Go to skip_it
709  spin_lock( & hash_lock)
711  chunk = agging and untagging inodes with trees
713  index; upper bit indicates 'will prune' |= 1U << 31
714  If iterate_mounts(compare_root, (void * )(key), root_mnt) Then index; upper bit indicates 'will prune' &= ~(1U << 31)
719  spin_unlock( & hash_lock)
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  deletes entry from list
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.
Caller
NameDescribe
audit_receive_msg