函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:replace_chunk

函数原型:static void replace_chunk(struct audit_chunk *new, struct audit_chunk *old)

返回类型:void

参数:

类型参数名称
struct audit_chunk *new
struct audit_chunk *old
302  key等于key
303  加入二个链表项并重新初始化
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 j小于count循环
307  如果非owner
308  i自减
309  继续下一循环
311  owner等于owner
312  owner等于owner
313  index等于indexji
314  如果非owner则继续下一循环
316  get_tree(owner)
317  list_replace_init( & list, & list)
319  replace_mark_chunk(mark, new)
325  smp_wmb()
326  更新RCU锁项
调用者
名称描述
untag_chunk
tag_chunkhe first tagged inode becomes root of tree