STRUCT PMC(9)
β¨ struct pmc(9) β like, the whole Kernel API Manual tea π
okay so bestie, buckle up π we're diving into struct pmc, which is literally the private info structure for a pmc. it's not scary, i promise β it's giving "small struct, big main character energy" π
πΈ SYNOPSIS
here's the whole vibe, verbatim, no cap:
struct pmc {
u64 base_addr;
void __iomem *regbase;
const struct pmc_reg_map *map;
u32 *lpm_req_regs;
u32 ltr_ign;
u8 num_lpm_modes;
u8 lpm_en_modes[LPM_MAX_NUM_MODES];
u16 devid;
};
look at her. iconic. π
π¦ Members
base_addrβ holds the pmc base address. that's it, that's the address. πregbaseβ pointer to the io-remapped memory location. yes, remapped. she's been places. πΊοΈmapβ pointer to apmc_reg_mapstruct that contains the platform-specific attributes. every platform's got its own little personality, and this is where it lives π«Άlpm_req_regsβ the list of substate requirements. lowkey a whole checklist. πltr_ignβ holds LTR ignore data while suspended. she's holding onto it for later, respectfully π΄num_lpm_modesβ count of enabled modes. just a number, but make it fashion π’lpm_en_modesβ array of enabled modes, from lowest to highest priority. ordered. organized. obsessed. πdevidβ Device ID of the SSRAM device. say hi to the SSRAM device for me π
π Description
pmc contains info about one power management controller device. that's the whole thing! one device, one struct, one little home for all her data π β¨ fr fr.
π SEE ALSO
- Kernel file
./drivers/platform/x86/intel/pmc/core.hstructpmc_reg_map(9),struct pmc_info(9),struct pmc_dev(9),struct pmc_dev_info(9)
go read the whole friend group, they're all linked π π
and that's the page, bestie π§ this little manual moment came from ./drivers/platform/x86/intel/pmc, dated October 2026 β struct pmc(9), slay πβ¨
π¦ 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