cpc_write_ffh(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cpc_write_ffh β€” Write FFH register πŸ’–

okay bestie, welcome to cpc_write_ffh(9), a lil kernel API page from the cpc_write_ffh part of the manual (section 9, kernel API, iykyk). this one's short and sweet, so let's get into it πŸŽ€


✨ SYNOPSIS ✨

int cpc_write_ffh (int cpunum , struct cpc_reg *reg , u64 val );

like, that's the whole vibe: you give it a CPU number, a register, and a value, and it hands you back an int. slay πŸ’…


🌸 ARGUMENTS 🌸

  • cpunum β€” the CPU number you're writing to, periodt. that's the one. πŸ‘‘
  • reg β€” the cppc register information, aka the deets about which register we're messing with.
  • val β€” the value to write. literally just the value. no cap. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it actually do? it writes a value of bit_width bits to a specified address and bit_offset. that's it, that's the whole thing β€” you point it at an address, you give it an offset, and it drops bit_width bits of your value in there. it's giving surgical precision πŸ’–


⭐ RETURN ⭐

0 for success, and an error code if it's not. so yeah, check your return value, bestie, don't just ghost it 😭


πŸŽ€ SEE ALSO πŸŽ€

the kernel file lives at ./drivers/acpi/cppc_acpi.c β€” iconic. and here's the whole friend group, all of them (9):


πŸ’€ real talk: there's a cpc_read_ffh(9) too, so if you're the reading type, go say hi. this page is the writing one. don't mix 'em up 🫢

and that's the page, bestie! it lives under ./drivers/acpi, dated October 2026, from the cpc_write_ffh(9) manual. go forth and write those FFH registers πŸ’œβœ¨πŸ“

πŸ“¦ where this page comes from