Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
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
1304  rdt_last_cmd_puts("Cache domain offline\n")
1305  ret = -ENODEV
1306  Else
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)
1321  If sep Then seq_putc(s, ';')
1323  If mode == RDT_MODE_PSEUDO_LOCKSETUP Then
1324  size = 0
1325  Else
1326  ctrl = If Not is_mba_sc(r) Then ctrl_val[closid] Else mbps_val[closid]
1329  If rid == RDT_RESOURCE_MBA Then size = 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  Return ret