STRUCT PMC_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct pmc_info(9) πŸ’–

okay so bestie, buckle up β€” this is a page from the Kernel API Manual, and today's main character is struct pmc_info. it's literally just a lil structure that keeps pmc info. that's the whole vibe. πŸŽ€


✨ NAME ✨

struct pmc_info β€” Structure to keep pmc info

like, that's it. that's the job. it holds pmc info and it does it slayfully. πŸ’…


🌸 SYNOPSIS 🌸

struct pmc_info {
    u16 devid;
    const struct pmc_reg_map *map;
 };

look at her. two members. no notes. πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • devid β€” the device id of the pmc device. yeah, that's the whole description, she's mysterious like that. πŸ”₯
  • map β€” a pointer to a pmc_reg_map struct that contains platform specific attributes. so like, every platform gets to have its own little personality and this pointer is how we find it. ngl that's kind of iconic. ✨

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/platform/x86/intel/pmc/core.h
  • struct pmc_reg_map(9)
  • struct pmc(9)
  • struct pmc_dev(9)
  • struct pmc_dev_info(9)

the whole friend group fr fr. go read them too, they're all in the ./drivers/platform/x86/intel/pmc directory and they all ate. 🫢


lowkey a reminder: this page is from October 2026, so if you're reading this from the future β€” hi, hope the kernel's still slaying. πŸ’œ

and that's the page bestie, mwah πŸ’‹ β€” sourced straight from ./drivers/platform/x86/intel/pmc, struct pmc_info(9), October 2026 edition. periodt. 🌟

πŸ“¦ where this page comes from