devfreq_get_freq_level(9)
π NAME β¨
devfreq_get_freq_level β okay so this is the little function that goes and looks things up in the freq_table for a given frequency π it's giving "glorified index finder" and honestly? iconic.
πΈ SYNOPSIS πΈ
int devfreq_get_freq_level (struct devfreq *devfreq , unsigned long freq
);
π¦ ARGUMENTS π¦
devfreqβ thedevfreqinstance, bestie. the actual device-frequency object you're working with πfreqβ the target frequency you're hunting for π that's the number you want a level for.
π SEE ALSO π
This function lives in the kernel file ./drivers/devfreq/devfreq.c β that's the main character's home π and here's the whole friend group it runs with, fr fr:
find_device_devfreq(9)devfreq_get_freq_range(9)devfreq_update_status(9)find_devfreq_governor(9)try_then_request_governor(9)devfreq_update_target(9)update_devfreq(9)devfreq_monitor(9)devfreq_monitor_start(9)devfreq_monitor_stop(9)devfreq_monitor_suspend(9)devfreq_monitor_resume(9)devfreq_update_interval(9)devfreq_notifier_call(9)qos_notifier_call(9)qos_min_notifier_call(9)qos_max_notifier_call(9)devfreq_dev_release(9)devfreq_add_device(9)devfreq_remove_device(9)devm_devfreq_add_device(9)devm_devfreq_remove_device(9)devfreq_suspend_device(9)devfreq_resume_device(9)devfreq_suspend(9)devfreq_resume(9)devfreq_add_governor(9)devm_devfreq_add_governor(9)devfreq_remove_governor(9)devfreq_summary_show(9)devfreq_recommended_opp(9)devfreq_register_opp_notifier(9)devfreq_unregister_opp_notifier(9)devm_devfreq_register_opp_notifier(9)devm_devfreq_unregister_opp_notifier(9)devfreq_register_notifier(9)devm_devfreq_register_notifier(9)devm_devfreq_unregister_notifier(9)
and that's the whole page, bestie, no notes π
β¨ this one came straight out of the kernel API manual, sourced from ./drivers/devfreq, dated October 2026 β go forth and look up those frequencies, iykyk π«Άπ
π¦ 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