函数逻辑报告

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:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dt_bit_usage_show - Display current usage of resources* A domain is a shared resource that can now be allocated differently

函数原型:static int rdt_bit_usage_show(struct kernfs_open_file *of, struct seq_file *seq, void *v)

返回类型:int

参数:

类型参数名称
struct kernfs_open_file *of
struct seq_file *seq
void *v
796  r等于priv
801  sw_shareable等于0, hw_shareable等于0
802  exclusive等于0, pseudo_locked等于0
806  bool sep = false
809  mutex_lock( & Mutex to protect rdtgroup access. )
810  hw_shareable等于shareable_bits
812  如果sepseq_putc(seq, ';')
814  ctrl等于ctrl_val
815  sw_shareable等于0
816  exclusive等于0
817  seq_printf(seq, "%d=", id)
818 i小于closids_supported()循环
819  如果非losid_allocated - test if provided closid is in use*@closid: closid to be tested* Return: true if @closid is currently associated with a resource group,* false if @closid is free则继续下一循环
821  mode等于dtgroup_mode_by_closid - Return mode of resource group with closid*@closid: closid if the resource group* Each resource group is associated with a @closid
823  :mode恒等于RDT_MODE_SHAREABLE
824  sw_shareable或等于ctrl
825  退出
826  :mode恒等于RDT_MODE_EXCLUSIVE
827  exclusive或等于ctrl
828  退出
837  退出
838  :mode恒等于RDT_MODE_PSEUDO_LOCKED
839  :mode恒等于RDT_NUM_MODES
840  WARN(1, "invalid mode for closid %d\n", i)
842  退出
845 i大于等于0循环
846  pseudo_locked等于如果plrcbm否则0
847  hwb等于st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
848  swb等于st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
849  excl等于st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
850  psl等于st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
851  如果hwbswbseq_putc(seq, 'X')
853  否则如果hwb且非swbseq_putc(seq, 'H')
855  否则如果非hwbswbseq_putc(seq, 'S')
857  否则如果exclseq_putc(seq, 'E')
859  否则如果pslseq_putc(seq, 'P')
861  否则seq_putc(seq, '0')
864  sep = true
866  seq_putc(seq, '\n')
867  mutex_unlock( & Mutex to protect rdtgroup access. )
868  返回:0