devfreq_event_enable_edev(9)
β¨ devfreq_event_enable_edev β¨
Okay bestie, welcome to the devfreq_event_enable_edev(9) kernel API page π this is a page from the Kernel API Manual, and honestly it's giving "small function, big responsibility." Let's get into it π«Ά
πΈ NAME πΈ
devfreq_event_enable_edev β enables the devfreq-event dev and bumps up the enable_count of that devfreq-event dev. Two-for-one, no cap π
π SYNOPSIS π
int devfreq_event_enable_edev (struct devfreq_event_dev *edev );
π¦ ARGUMENTS π¦
edevβ the devfreq-event device. That's it, that's the whole argument list, she's low maintenance β¨
π DESCRIPTION π
So here's the tea β β this function increases the enable_count and enables the devfreq-event device. Both. Together. Iconic.
And the important part, bestie, listen up: the devfreq-event device should be enabled before using it by devfreq device. Like, you literally have to turn it on first. Can't skip that step, fr fr π
π₯ SEE ALSO π₯
Peep the kernel file and then go down the whole friend group of related functions π
- Kernel file
./drivers/devfreq/devfreq-event.c devfreq_event_disable_edev(9)devfreq_event_is_enabled(9)devfreq_event_set_event(9)devfreq_event_get_event(9)devfreq_event_reset_event(9)devfreq_event_get_edev_by_phandle(9)devfreq_event_get_edev_count(9)devfreq_event_add_edev(9)devfreq_event_remove_edev(9)devm_devfreq_event_add_edev(9)devm_devfreq_event_remove_edev(9)
π Reminder from your girl: enable_count goes up, device gets enabled. That's the whole vibe. Don't forget to actually enable it before the devfreq device tries to use it β that's the classic oopsie π
And that's the page, bestie!! π§ This little gem lives in ./drivers/devfreq and it's dated October 2026 β so mark your calendar, she's a whole era πβ¨π
π¦ 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