STRUCT MLXBF_PMC_CONTEXT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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.c struct mlxbf_pmc_attribute(9), struct mlxbf_pmc_block_info(9), struct mlxbf_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