STRUCT MLXBF_PMC_CONTEXT(9)
π struct mlxbf_pmc_context π
okay bestie, welcome to the Kernel API Manual page for struct mlxbf_pmc_context π
this is literally the structure that holds PMC context info, and it's giving "everything in one place" energy. no cap. β¨
πΈ NAME πΈ
struct mlxbf_pmc_context β structure to hold PMC context info. periodt. π
β¨ SYNOPSIS β¨
here's the whole struct, bestie β keep every name and type exactly as shown:
struct mlxbf_pmc_context {
struct platform_device *pdev;
u32 total_blocks;
u32 tile_count;
u8 apt_enable;
u8 llt_enable;
u8 mss_enable;
u32 group_num;
struct device *hwmon_dev;
const char *block_name[MLXBF_PMC_MAX_BLOCKS];
struct mlxbf_pmc_block_info block[MLXBF_PMC_MAX_BLOCKS];
const struct attribute_group *groups[MLXBF_PMC_MAX_BLOCKS];
bool svc_sreg_support;
u32 sreg_tbl_perf;
unsigned int event_set;
};
π Members π
the full cast of fields, no skips, no "we'll get to it later" β every one is here π«Ά
pdevβ the kernel structure representing the device. main character device energy. π₯total_blocksβ total number of blocks. simple, iconic. π―tile_countβ number of tiles in the system. slay. π§apt_enableβ info on enabled APTs. β¨llt_enableβ info on enabled LLTs. πΈmss_enableβ info on enabled MSSs. πgroup_numβ group number assigned to each valid block. okayyy. πhwmon_devβ hwmon device for bfperf. noted bestie. π¦block_nameβ block name. yes, that's literally it. πblockβ block info. πgroupsβ attribute groups from each block. βsvc_sreg_supportβ whether SMCs are used to access performance registers. important vibe check. πsreg_tbl_perfβ secure register access table number. πevent_setβ event set to use. and that's the list, periodt. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/platform/mellanox/mlxbf-pmc.cstructmlxbf_pmc_attribute(9), structmlxbf_pmc_block_info(9), structmlxbf_pmc_events(9)
big kiss π source/version: ./drivers/platform/mellanox; date: October 2026; page: struct mlxbf_pmc_context(9). bye bestie, go be iconic with your PMC context π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms