pmc_ssram_te...get_pmc_info(9)
π NAME π
pmc_ssram_telemetry_get_pmc_info β okay so this one is literally just here to hand you a PMC's devid and base_addr, that's the whole vibe π«Ά
Oh and hey β this is a page from the Kernel API Manual, section 9, bestie. Welcome to the kernel-adjacent corner of the group chat β¨
πΈ SYNOPSIS πΈ
int pmc_ssram_telemetry_get_pmc_info (unsigned int pmc_idx , struct
pmc_ssram_telemetry *pmc_ssram_telemetry );
No cap, that's the whole signature. Two args, one int coming back at you π
π ARGUMENTS π
pmc_idxβ the index of the PMC. which one do you want, bestie, pick a number π¦pmc_ssram_telemetryβ apmc_ssram_telemetrystructure, and it's where the PMC info gets stored. it's giving "bring your own container" π
β¨ DESCRIPTION β¨
Okay so here's the tea β there's a little state machine running per PMC index, and you gotta know which state you're walking into before you go reading anything. vibe check time π
PMC_SSRAM_UNPROBEDβ nobody's even started probing this index yet. it's fresh out of the box, untouched, a blank slate π±PMC_SSRAM_PROBINGβ probe is currently out here discovering data for this index. mid-quest, do not disturb πββοΈπ¨PMC_SSRAM_PRESENTβ slay!!base_addr/devidwere published and you can read them. the data is live, go get it πPMC_SSRAM_ABSENTβ no data available for this index. it's not here, it never showed up, it's not coming π
Now for the memory-ordering lore, because this part is actually important, no cap π§ β¨
Readers use an acquire load of the state. So if the state comes back PRESENT, your reads of base_addr/devid are ordered after that state observation β and they pair with the writer's release-store when it published PRESENT. It's giving a perfectly choreographed handoff π€ iykyk
π₯ RETURN π₯
0β success! we ate π-EAGAINβ the probe function has not finished yet. just try again, bestie, patience is a vibe π-EINVALβ invalidpmc_idx. mm, that index is not it π-ENODEVβ the PMC device is not available (hardware absent or the driver failed to initialize). literally not found, ghosted π
π¦ SEE ALSO π¦
Kernel file ./drivers/platform/x86/intel/pmc/ssram_telemetry.c β go read the source, it's iconic π
kisses from the kernel π this page lives under ./drivers/platform/x86/intel/pmc, dated October 2026, and it's page pmc_ssram_telemetry_get_pmc_info(9) of the Kernel API Manual β go off, bestie, you got this πβ¨
π¦ 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