cpufreq_set(9)
π cpufreq_set β kernel API manual, but make it cute
Hiii bestie, welcome to the cpufreq_set(9) page β yes it's a section 9 kernel API manual, yes we're doing this, and yes it's lowkey iconic. Sit down, hydrate, let's go π«Ά
β¨ NAME β¨
cpufreq_set β set the CPU frequency. That's it, that's the whole vibe. π
π SYNOPSIS π
int cpufreq_set (struct cpufreq_policy *policy , unsigned int freq );
Look at her. Gorgeous. No cap, this is the entire function signature and we're copying it exactly because we do not freestyle with code. π₯
πΈ ARGUMENTS πΈ
policyβ a pointer to thepolicystruct, and it's the one wherefreqis being set. Like, this is the main character struct, the freq is being set on it. πfreqβ the target frequency, measured in kHz. Not MHz, not Hz, kHz, bestie. Units matter, iykyk. β
π¦ DESCRIPTION π¦
So likeβ¦ it sets the CPU frequency to freq. β¨
That's genuinely the whole description. Short queen energy. Sets. The CPU frequency. To freq. Periodt. π
No plot twists, no hidden clauses, no "but only if the moon is in retrograde" β the doc says it does the thing and we are not out here inventing lore. π
π SEE ALSO π
- Kernel file
./drivers/cpufreq/cpufreq_userspace.cβ go peek if you want, she's the source of truth. π
fr fr, if you're setting frequencies, keep your units straight β freq is in kHz. That's the one detail that'll trip you up and it's giving "easy mistake, big consequences". π
π okay that's the whole page, hope it slayed! this masterpiece lives in the ./drivers/cpufreq corner of the tree and the page itself is dated October 2026 β Kernel API Manual, section 9, no notes. mwah, bye bestie ππβ¨
π¦ 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