Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:untag_chunk

Proto:static void untag_chunk(struct audit_chunk *chunk, struct fsnotify_mark *mark)

Type:void

Parameter:

TypeParameterName
struct audit_chunk *chunk
struct fsnotify_mark *mark
358  mutex_lock( & protect marks_list )
363  If Not ( flags [mark->lock] & FSNOTIFY_MARK_FLAG_ATTACHED) || mark_chunk(mark) != chunk Then Go to out_mutex
367  size = chunk_count_trees(chunk)
368  If Not size Then
369  spin_lock( & hash_lock)
370  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
371  list_del_rcu - deletes entry from list without re-initialization*@entry: the element to delete from the list
372  replace_mark_chunk(mark, NULL)
373  spin_unlock( & hash_lock)
374  Mark mark as detached, remove it from group list
375  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.
376  Drop reference to the chunk that was held by the mark. This is the reference* that gets dropped after we've removed the chunk from the hash table and we* use it to make sure chunk cannot be freed before RCU grace period expires.
377  Free fsnotify mark
378  Return
381  new = alloc_chunk(size)
382  If Not new Then Go to out_mutex
385  spin_lock( & hash_lock)
390  replace_chunk(new, chunk)
391  spin_unlock( & hash_lock)
392  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.
393  Drop reference to the chunk that was held by the mark. This is the reference* that gets dropped after we've removed the chunk from the hash table and we* use it to make sure chunk cannot be freed before RCU grace period expires.
394  Return
396  out_mutex :
397  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
prune_tree_chunksRemove 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.