Function report |
Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c |
Create Date:2022-07-28 08:11:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int rdtgroup_size_show(struct kernfs_open_file *of, struct seq_file *s, void *v)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct kernfs_open_file * | of | |
struct seq_file * | s | |
void * | v |
1291 | ret = 0 |
1295 | rdtgrp = rdtgroup_kn_lock_live( published fields ) |
1296 | If Not rdtgrp Then |
1297 | rdtgroup_kn_unlock( published fields ) |
1298 | Return -ENOENT |
1301 | If mode == RDT_MODE_PSEUDO_LOCKED Then |
1302 | If Not d Then |
1306 | Else |
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 | Go to 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 | If mode == RDT_MODE_PSEUDO_LOCKSETUP Then |
1324 | size = 0 |
1325 | Else |
1329 | If rid == RDT_RESOURCE_MBA Then size = ctrl |
1334 | seq_printf(s, "%d=%u", id, size) |
1335 | sep = true |
1340 | out : |
1341 | rdtgroup_kn_unlock( published fields ) |
1343 | 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 |