devfreq_update_target(9)
π devfreq_update_target β kernel API manual, but make it make sense
okay bestie, so this one is a kernel function called devfreq_update_target, and it lives in the Kernel API Manual. No cap, the whole point of it is: reevaluate the device and configure frequency on the final stage. That's the vibe. It's the last-stop, final-stage glow-up moment for your device's frequency. β¨
π¦ SYNOPSIS
int devfreq_update_target (struct devfreq *devfreq , unsigned long freq );
that's it, that's the whole signature. returns an int, takes two things, we're gonna go through them one by one, i promise. π«Ά
π ARGUMENTS
devfreqβ the devfreq instance. your actual device object, the main character of this whole story πfreqβ the new frequency of the parent device. and listen, this one has a very specific lane: this argument is only used for devfreq devices using the passive governor. like, only then. do not come for it otherwise, it's not for you π
πΈ NOTE
bestie. read this twice. Lockdevfreq->lockbefore callingdevfreq_update_target. do not skip the lock. the lock is not optional, the lock is the whole personality.
and the other thing: this function should only be used by both update_devfreq and devfreq governors. it's not a general-purpose lil helper you sprinkle on your code like glitter. it's an inside job, iykyk. π
β SEE ALSO
the whole extended friend group, and yes they all have (9) after their names because that's the section, we don't make the rules:
- Kernel file
./drivers/devfreq/devfreq.c find_device_devfreq(9)devfreq_get_freq_range(9)devfreq_get_freq_level(9)devfreq_update_status(9)find_devfreq_governor(9)try_then_request_governor(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 page!! mwah π this whole thing ships out of ./drivers/devfreq and it's dated October 2026, so like, future-coded of it honestly. slay. ππ
π¦ 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