cpufreq_add_dev(9)
π cpufreq_add_dev(9) β a Kernel API Manual moment π
okay so real talk, bestie: this one is a page from the Kernel API Manual, and it's about the cpufreq interface for a CPU device. yes that cpufreq. the one keeping your laptop from melting. it's a short one, so let's get into it π«Ά
β¨ NAME β¨
cpufreq_add_dev β literally the cpufreq interface for a CPU device. that's the whole vibe check, no cap.
πΈ SYNOPSIS πΈ
int cpufreq_add_dev (struct device *dev , struct subsys_interface *sif );
that's the exact signature, copy it character for character, do NOT freestyle it π
π ARGUMENTS π
devβ the CPU device. like, the device representing a CPU. that's it, that's the whole icon β¨sifβ a subsystem interface structure pointer. and here's the thing: it's not used. like, it's there, it's invited to the party, it's just not doing anything π (not me showing up to the function call and contributing nothing)
π¦ SEE ALSO π¦
the kernel file for all of this lives at ./drivers/cpufreq/cpufreq.c β that's the source of truth, go read it iykyk π
and here's the whole friend group, in the order they're listed, because i would never leave anyone out:
cpufreq_cpu_get(9)cpufreq_cpu_put(9)adjust_jiffies(9)cpufreq_notify_transition(9)cpufreq_enable_fast_switch(9)cpufreq_disable_fast_switch(9)cpufreq_driver_resolve_freq(9)cpufreq_parse_governor(9)cpufreq_out_of_sync(9)cpufreq_quick_get(9)cpufreq_quick_get_max(9)cpufreq_get_hw_max_freq(9)cpufreq_get(9)cpufreq_suspend(9)cpufreq_resume(9)cpufreq_driver_test_flags(9)cpufreq_get_current_driver(9)cpufreq_get_driver_data(9)cpufreq_register_notifier(9)cpufreq_unregister_notifier(9)cpufreq_driver_fast_switch(9)cpufreq_driver_adjust_perf(9)cpufreq_driver_has_adjust_perf(9)cpufreq_update_pressure(9)cpufreq_set_policy(9)cpufreq_update_policy(9)cpufreq_update_limits(9)cpufreq_register_driver(9)
fr fr: if you're poking at CPU frequency stuff, at least one of these is gonna be your new bestie. go say hi. π
π and that's the page π
okay so like a proper sign-off, because we're classy: this lives under ./drivers/cpufreq, dated October 2026, and it's the page for cpufreq_add_dev(9). periodt. go keep those cores cool bestie, you ate ππ₯π§
π¦ 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