Function report |
Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c |
Create Date:2022-07-28 08:11:10 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dt_bit_usage_show - Display current usage of resources* A domain is a shared resource that can now be allocated differently
Proto:static int rdt_bit_usage_show(struct kernfs_open_file *of, struct seq_file *seq, void *v)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct kernfs_open_file * | of | |
struct seq_file * | seq | |
void * | v |
801 | sw_shareable = 0 , hw_shareable = 0 |
802 | exclusive = 0 , pseudo_locked = 0 |
806 | bool sep = false |
810 | hw_shareable = shareable_bits |
815 | sw_shareable = 0 |
816 | exclusive = 0 |
817 | seq_printf(seq, "%d=", id) |
818 | When i < closids_supported() cycle |
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 | Case mode == RDT_MODE_SHAREABLE |
824 | sw_shareable |= ctrl |
825 | Break |
826 | Case mode == RDT_MODE_EXCLUSIVE |
829 | Case mode == RDT_MODE_PSEUDO_LOCKSETUP |
837 | Break |
838 | Case mode == RDT_MODE_PSEUDO_LOCKED |
839 | Case mode == RDT_NUM_MODES |
846 | pseudo_locked = If plr Then cbm Else 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 |
864 | sep = true |
868 | Return 0 |
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 |