find_device_devfreq(9)
πΈ find_device_devfreq(9) πΈ
okay so this is a page from the Kernel API Manual and it's literally about one tiny function that goes hunting for a devfreq struct using a device pointer. bestie, it's a lookup function, it's not deep, but it is iconic π
β¨ NAME β¨
find_device_devfreq β find devfreq struct using device pointer π
π¦ SYNOPSIS π¦
struct devfreq * find_device_devfreq (struct device *dev );
like yes, that's the whole signature, she's simple and she serves π
π ARGUMENTS π
devβ device pointer used to lookup device devfreq. that's the thing you're searching for, she's your little key π
π DESCRIPTION π
So the vibe here is: it searches the list of device devfreqs and returns the matched device's devfreq info. that's it, that's the function π«Ά
β οΈ no cap, important: devfreq_list_lock should be held by the caller. like, you gotta hold the lock before you call this. it does not do it for you, bestie. that's on you π
π SEE ALSO π
Kernel file ./drivers/devfreq/devfreq.c and honestly the whole devfreq friend group π:
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_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, mwah π this little icon lives in ./drivers/devfreq, dated October 2026, and yes she's still out here being find_device_devfreq(9) β go hold that lock and 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