cpc_read_ffh_fb_ctrs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpc_read_ffh_fb_ctrs β€” NAME ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ and lemme introduce you to cpc_read_ffh_fb_ctrs β€” she reads FFH feedback counters together. that's it, that's the whole vibe. two counters, one call, no cap 🫢


🌸 SYNOPSIS 🌸

int cpc_read_ffh_fb_ctrs (int cpunum , struct cpc_reg *reg1 , u64 *val1
, struct cpc_reg *reg2 , u64 *val2 );

literally just hand her a CPU and two registers and she'll hand you back two values. iconic behavior honestly πŸ’…


✨ ARGUMENTS ✨

  • cpunum β€” Target CPU 🎯 like, which CPU bestie. that's the one.
  • reg1 β€” the first CPPC register information πŸ“ (yes, "information" β€” she's first, she gets the whole info package)
  • val1 β€” place holder for the first return value πŸŽ€ this is where result numero uno goes to live
  • reg2 β€” the second CPPC register information πŸ¦‹ same deal, but she's second
  • val2 β€” place holder for the second return value πŸ’– and this is where result numero dos lands

πŸ‘‘ RETURN πŸ‘‘

  • 0 β€” slay, success ✨
  • error code otherwise β€” not slay, something went sideways 😭 it's giving error, but at least she tells you

πŸ”₯ SEE ALSO πŸ”₯

kernel file ./drivers/acpi/cppc_acpi.c β€” and honestly the whole friend group showed up for this one, so let me introduce everybody πŸ’œ:

ngl that's a lot of siblings but they're all valid, i don't make the rules πŸ’€

and that's the page bestie 🧚 this little beauty lives in ./drivers/acpi, and she was dated October 2026 β€” so mark your calendar, mwah πŸ’‹β­

πŸ“¦ where this page comes from