函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c Create Date:2022-07-27 09:11:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rdtgroup_add_files

函数原型:static int rdtgroup_add_files(struct kernfs_node *kn, unsigned long fflags)

返回类型:int

参数:

类型参数名称
struct kernfs_node *kn
unsigned longfflags
1489  rfts等于dtgroup information files for one cache resource.
1490  len等于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(dtgroup information files for one cache resource. )
1492  lockdep_assert_held( & Mutex to protect rdtgroup access. )
1494 rft小于rftslen循环
1495  如果fflags按位与fflags的值恒等于fflags
1496  ret等于rdtgroup_add_file(kn, rft)
1497  如果ret则转到:error
1502  返回:0
1503  error :
1504  打印警告信息("Failed to add %s, err=%d\n", name, ret)
1505 rft先自减大于等于rfts循环
1506  如果fflags按位与fflags的值恒等于fflagskernfs_remove_by_name(kn, name)
1509  返回:ret
调用者
名称描述
rdtgroup_mkdir_info_resdir
rdtgroup_create_info_dir
mkdir_rdt_prepare
rdtgroup_setup_root