函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c |
Create Date:2022-07-27 09:11:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:dtgroup_size_show - Display size in bytes of allocated regions* The "size" file mirrors the layout of the "schemata" file, printing the* size in bytes of each region instead of the capacity bitmask.
函数原型:static int rdtgroup_size_show(struct kernfs_open_file *of, struct seq_file *s, void *v)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kernfs_open_file * | of | |
struct seq_file * | s | |
void * | v |
1291 | ret等于0 |
1295 | rdtgrp等于rdtgroup_kn_lock_live( published fields ) |
1296 | 如果非rdtgrp则 |
1297 | rdtgroup_kn_unlock( published fields ) |
1298 | 返回:负ENOENT |
1301 | 如果mode恒等于RDT_MODE_PSEUDO_LOCKED则 |
1302 | 如果非d则 |
1306 | 否则 |
1307 | seq_printf(s, "%*s:", Used to store the max resource name width and max resource data width* to display the schemata in a tabular format, name) |
1312 | seq_printf(s, "%d=%u\n", id, size) |
1314 | 转到:out |
1318 | sep = false |
1319 | seq_printf(s, "%*s:", Used to store the max resource name width and max resource data width* to display the schemata in a tabular format, name) |
1323 | 如果mode恒等于RDT_MODE_PSEUDO_LOCKSETUP则 |
1324 | size等于0 |
1325 | 否则 |
1329 | 如果rid恒等于RDT_RESOURCE_MBA则size等于ctrl |
1334 | seq_printf(s, "%d=%u", id, size) |
1335 | sep = true |
1340 | out : |
1341 | rdtgroup_kn_unlock( published fields ) |
1343 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |