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:12:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rdtgroup_setup_root

Proto:static int __init rdtgroup_setup_root(void)

Type:int

Parameter:Nothing

3040  rdt_root = kernfs_create_root( & rdtgroup_kf_syscall_ops, KERNFS_ROOT_CREATE_DEACTIVATED | KERNFS_ROOT_EXTRA_OPEN_PERM_CHECK, & rdtgroup_default)
3044  If IS_ERR(rdt_root) Then Return PTR_ERR(rdt_root)
3047  mutex_lock( & Mutex to protect rdtgroup access. )
3049  closid = 0
3050  rmid = 0
3051  type = RDTCTRL_GROUP
3052  Initialization list head
3054  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
3056  ret = rdtgroup_add_files( published fields , RF_CTRL_BASE)
3057  If ret Then
3058  kernfs_destroy_root(rdt_root)
3059  Go to out
3062  kn = published fields
3063  kernfs_activate(kn)
3065  out :
3066  mutex_unlock( & Mutex to protect rdtgroup access. )
3068  Return ret
Caller
NameDescribe
rdtgroup_initdtgroup_init - rdtgroup initialization* Setup resctrl file system including set up root, create mount point,* register rdtgroup filesystem, and initialize files under root directory.* Return: 0 on success or -errno