cpc_write_ffh(9)
π 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):
acpi_get_psd_map(9)cpc_ffh_supported(9)cpc_supported_by_cpu(9)pcc_data_alloc(9)acpi_cppc_processor_probe(9)acpi_cppc_processor_exit(9)cpc_read_ffh(9)cpc_read_ffh_fb_ctrs(9)cppc_get_desired_perf(9)cppc_get_nominal_perf(9)cppc_get_highest_perf(9)cppc_get_epp_perf(9)cppc_get_perf_caps(9)cppc_perf_ctrs_in_pcc_cpu(9)cppc_perf_ctrs_in_pcc(9)cppc_get_perf_ctrs(9)cppc_set_epp(9)cppc_get_auto_act_window(9)cppc_set_auto_act_window(9)cppc_get_auto_sel(9)cppc_set_auto_sel(9)cppc_set_enable(9)cppc_get_perf(9)cppc_set_perf(9)cppc_get_perf_limited(9)cppc_set_perf_limited(9)cppc_get_transition_latency(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
- 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