try_then_request_governor(9)
π NAME π
try_then_request_governor β bestie, this is the little helper that goes looking for a governor and, if it canβt find it, asks for the module and tries again. Periodt. π
β¨ SYNOPSIS β¨
struct devfreq_governor * try_then_request_governor (const char *name );
π ARGUMENTS π
nameβ the name of the governor, like the little name tag at the function party π·οΈβ¨
π¦ DESCRIPTION π¦
Okay so picture this: try_then_request_governor searches the list of devfreq governors, and if the one you want isnβt there, it requests the module and tries again. Iconic persistence, honestly. π«Ά
This whole situation can happen when both drivers β the governor driver and the driver that calls devfreq_add_device β are built as modules. Yes, both of them. Modules. Itβs giving βweβre all modular here.β π
β οΈ Heads up, bestie: devfreq_list_lock should be held by the caller. Like, actually held. Donβt come in without it. ππ
It returns the matched governorβs pointer, or an error pointer. Thatβs the vibe check: pointer on success, error pointer when itβs not giving. πΈ
π SEE ALSO π
Kernel file ./drivers/devfreq/devfreq.c, plus the whole friend group:
find_device_devfreq(9)devfreq_get_freq_range(9)devfreq_get_freq_level(9)devfreq_update_status(9)find_devfreq_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. This little gem lives in ./drivers/devfreq, and itβs stamped October 2026 β so yeah, sheβs current, sheβs cute, sheβs try_then_request_governor(9). πβ¨π
π¦ 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