cpufreq_get_driver_data(9)
π cpufreq_get_driver_data β the Kernel API Manual, bestie edition β¨
okay so this is <pink>cpufreq_get_driver_data</pink> from the Kernel API Manual and honestly? she's a tiny queen with a big job. let's get into it π
β¨ NAME β¨
cpufreq_get_driver_data β returns the current driver data. that's it. that's the whole vibe. π«Ά
πΈ SYNOPSIS πΈ
void * cpufreq_get_driver_data (void );
yes bestie, she takes nothing and hands you back a void *. main character energy fr fr π
π¦ ARGUMENTS π¦
voidβ no arguments. zero. none. she doesn't want your input, she's booked and busy. π
π DESCRIPTION π
okay so here's the tea π: this function returns the private data of the cpufreq driver that's currently registered.
and like β if no cpufreq driver has been registered? she just gives you NULL. no drama, no error code, just NULL. lowkey iconic of her to be that honest π
so basically:
- driver registered β you get its private data β¨
- no driver registered β
NULLπ«₯
that's the whole thing. no cap.
π SEE ALSO π
the kernel file lives at ./drivers/cpufreq/cpufreq.c and she's got a whole friend group, i'm obsessed:
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_add_dev(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_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)
like, twenty-eight besties. a whole group chat. iykyk π
quick vibe check: this is the general kernel API manual, not section 1 or 8, so remember the (9) when you're looking her up π
and that's the page!! π§ mwah π
sign-off era: this lil beauty lives under ./drivers/cpufreq, and she was last seen glowing in October 2026 β all wrapped up in the Kernel API Manual, cpufreq_get_driver_data(9). slay, protect her at all costs ππ
π¦ 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