函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rdtgroup_setup_root

函数原型:static int __init rdtgroup_setup_root(void)

返回类型:int

参数:

3040  rdt_root等于kernfs_create_root( & rdtgroup_kf_syscall_ops, KERNFS_ROOT_CREATE_DEACTIVATED | KERNFS_ROOT_EXTRA_OPEN_PERM_CHECK, & rdtgroup_default)
3044  如果是错误则返回:错误
3047  mutex_lock( & Mutex to protect rdtgroup access. )
3049  closid等于0
3050  rmid等于0
3051  type等于RDTCTRL_GROUP
3052  初始化链表头
3054  添加链表项
3056  ret等于rdtgroup_add_files( published fields , RF_CTRL_BASE)
3057  如果ret
3058  kernfs_destroy_root(rdt_root)
3059  转到:out
3062  kn等于 published fields
3063  kernfs_activate(kn)
3065  out :
3066  mutex_unlock( & Mutex to protect rdtgroup access. )
3068  返回:ret
调用者
名称描述
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