intel_pmc_gcr_read64(9)
π¦ intel_pmc_gcr_read64 π¦
okay bestie, welcome to the Kernel API Manual β this page is intel_pmc_gcr_read64(9), and it's giving βread one 64-bit PMC GCR registerβ energy β¨
πΈ NAME πΈ
intel_pmc_gcr_read64 β Read a 64-bit PMC GCR register π
β¨ SYNOPSIS β¨
int intel_pmc_gcr_read64 (struct intel_pmc_dev *pmc , u32 offset , u64 *data );
π ARGUMENTS π
pmcβ PMC device pointer. Like, the PMC device pointer, bestie π«Άoffsetβ offset of GCR register from GCR address base. Exact vibe: where the GCR register sits relative to the GCR address base πdataβ data pointer for storing the register output. It's the spot where the register output gets stored πΎ
π DESCRIPTION π
Reads the 64-bit PMC GCR register at the given offset. That's it, that's the whole flex β you give it an offset, it reads the 64-bit PMC GCR register there, no cap π₯
β RETURN β
Negative value on error, or 0 on success. So: error = negative π, success = 0 π
π¦ SEE ALSO π¦
Kernel file ./drivers/mfd/intel_pmc_bxt.c, plus intel_pmc_gcr_update(9), intel_pmc_s0ix_counter_read(9), simplecmd_store(9), and northpeak_store(9) β go read those too, iykyk πβ¨
π cute little sign-off: this one's from ./drivers/mfd, dated October 2026, and it's intel_pmc_gcr_read64(9) β mwah, periodt π
π¦ 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