devfreq_add_device(9)
π devfreq_add_device(9) β Kernel API Manual, but make it make sense
okay so bestie, welcome to the devfreq_add_device(9) page π this is from the Kernel API Manual and it's literally the moment you give a device main character energy by bolting the whole devfreq feature onto it. no cap, it's a glow-up for your hardware π₯
β¨ NAME β¨
devfreq_add_device β Add devfreq feature to the device π«Ά
like, that's the whole vibe. you have a device. it does not have devfreq. you fix that. iconic.
πΈ SYNOPSIS πΈ
struct devfreq * devfreq_add_device (struct device *dev , struct
devfreq_dev_profile *profile , const char *governor_name , void *data );
it returns a struct devfreq * btw β that's your shiny new handle, don't lose it π
π¦ ARGUMENTS π¦
devβ the device you're adding the devfreq feature to. yes, that one. your fave. give it the gift of frequency scaling β¨profileβ the device-specific profile that devfreq is gonna run. it's like the device's personal instruction manual, tailor-made πgovernor_nameβ the name of the policy that chooses the frequency. literally the vibe-picker for how fast your device clocks. choose wisely bestie πdataβ stuff the devfreq driver passes on to the governors. and heads up: the governor should not change it. like, hands off, no touchy π that's the rule.
π SEE ALSO π
so there's a lot of friends in this friend group, all living in the kernel file ./drivers/devfreq/devfreq.c. go say hi π
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)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_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)
lowkey go read them all, they're all in ./drivers/devfreq and they all ate π
and that's the page bestie!! π this lil delight came out of ./drivers/devfreq and it's dated October 2026 β so like, future-core fr fr. anyway mwah, go add some devfreq to something, you've got this πππ§
π¦ 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