intel_pmc_gcr_read64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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