函数逻辑报告

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:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dtgroup_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

函数原型:int __init rdtgroup_init(void)

返回类型:int

参数:

3081  ret等于0
3083  seq_buf_init( & last_cmd_status, last_cmd_status_buf, last_cmd_status_buf的长度)
3086  ret等于rdtgroup_setup_root()
3087  如果ret则返回:ret
3090  ret等于sysfs_create_mount_point(/sys/fs , "resctrl")
3091  如果ret则转到:cleanup_root
3094  ret等于gister_filesystem - register a new filesystem*@fs: the file system structure* Adds the file system passed to the list of file systems the kernel* is aware of for mount and other syscalls
3095  如果ret则转到:cleanup_mountpoint
3119  debugfs_resctrl等于debugfs_create_dir("resctrl", NULL)
3121  返回:0
3123  cleanup_mountpoint :
3124  sysfs_remove_mount_point(/sys/fs , "resctrl")
3125  cleanup_root :
3126  kernfs_destroy_root(rdt_root)
3128  返回:ret
调用者
名称描述
resctrl_late_init