函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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
1304  rdt_last_cmd_puts("Cache domain offline\n")
1305  ret等于负ENODEV
1306  否则
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)
1321  如果sepseq_putc(s, ';')
1323  如果mode恒等于RDT_MODE_PSEUDO_LOCKSETUP
1324  size等于0
1325  否则
1326  ctrl等于如果非is_mba_sc(r)则ctrl_val[closid]否则mbps_val[closid]
1329  如果rid恒等于RDT_RESOURCE_MBAsize等于ctrl
1334  seq_printf(s, "%d=%u", id, size)
1335  sep = true
1337  seq_putc(s, '\n')
1340  out :
1341  rdtgroup_kn_unlock( published fields )
1343  返回:ret