| Function report | 
| Source Code: arch\x86\kernel\cpu\resctrl\rdtgroup.c | Create Date:2022-07-28 08:12:16 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:int __init rdtgroup_init(void)
Type:int
Parameter:Nothing
| 3081 | ret = 0 | 
| 3083 | seq_buf_init( & last_cmd_status, last_cmd_status_buf, size of last_cmd_status_buf ) | 
| 3086 | ret = rdtgroup_setup_root() | 
| 3090 | ret = sysfs_create_mount_point(/sys/fs , "resctrl") | 
| 3091 | If ret Then Go to 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 | If ret Then Go to cleanup_mountpoint | 
| 3119 | debugfs_resctrl = debugfs_create_dir("resctrl", NULL) | 
| 3121 | Return 0 | 
| 3123 | cleanup_mountpoint : | 
| 3124 | sysfs_remove_mount_point(/sys/fs , "resctrl") | 
| 3125 | cleanup_root : | 
| 3126 | kernfs_destroy_root(rdt_root) | 
| 3128 | Return ret | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |