Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rim the uncommitted chunks from tree

Proto:static void trim_marked(struct audit_tree *tree)

Type:void

Parameter:

TypeParameterName
struct audit_tree *tree
616  spin_lock( & hash_lock)
617  If goner Then
618  spin_unlock( & hash_lock)
619  Return
622  When p != chunks cycle
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 = next
630  spin_unlock( & hash_lock)
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  spin_lock( & hash_lock)
635  If Not root && Not goner Then
636  goner = 1
637  spin_unlock( & hash_lock)
638  mutex_lock( & audit_filter_mutex)
639  kill_rules(audit_context(), tree)
640  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
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  Else
644  spin_unlock( & hash_lock)
Caller
NameDescribe
audit_trim_trees
audit_add_tree_rulealled with audit_filter_mutex
audit_tag_tree