Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:replace_chunk

Proto:static void replace_chunk(struct audit_chunk *new, struct audit_chunk *old)

Type:void

Parameter:

TypeParameterName
struct audit_chunk *new
struct audit_chunk *old
302  key = key
303  list_splice_init - join two lists and reinitialise the emptied list.*@list: the new list to add.*@head: the place to add it in the first list.* The list at @list is reinitialised
304  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(owner, & with root here , same_root)
305  root = new
306  When j < count cycle
307  If Not owner Then
308  i--
309  Continue
311  owner = owner
312  owner = owner
313  index = index - j + i
314  If Not owner Then Continue
316  get_tree(owner)
317  list_replace_init( & list, & list)
319  replace_mark_chunk(mark, new)
325  smp_wmb()
326  list_replace_rcu - replace old entry by new one*@old : the element to be replaced*@new : the new element to insert* The @old entry will be replaced with the @new entry atomically.* Note: @old should not be empty.
Caller
NameDescribe
untag_chunk
tag_chunkhe first tagged inode becomes root of tree