Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c Create Date:2022-07-28 08:11:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rdtgroup_add_files

Proto:static int rdtgroup_add_files(struct kernfs_node *kn, unsigned long fflags)

Type:int

Parameter:

TypeParameterName
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  When rft < rfts + len cycle
1495  If (fflags & fflags) == fflags Then
1497  If ret Then Go to error
1502  Return 0
1503  error :
1504  pr_warn("Failed to add %s, err=%d\n", name, ret)
1505  When --rft >= rfts cycle
1506  If (fflags & fflags) == fflags Then kernfs_remove_by_name(kn, name)
1509  Return ret
Caller
NameDescribe
rdtgroup_mkdir_info_resdir
rdtgroup_create_info_dir
mkdir_rdt_prepare
rdtgroup_setup_root