devfreq_eve...v_by_phandle(9)
πΈ devfreq_eve...v_by_phandle(9) πΈ
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, and yes it's giving "official documentation but make it cute." Today's main character is devfreq_event_get_edev_by_phandle (the header up top shortens it to devfreq_eve...v_by_phandle(9) because apparently even man pages have a character limit π). It's a section 9 kernel API page, so buckle up buttercup π
β¨ NAME β¨
devfreq_event_get_edev_by_phandle β literally gets you the devfreq-event dev straight out of the devicetree. no cap. π¦
β¨ SYNOPSIS β¨
struct devfreq_event_dev * devfreq_event_get_edev_by_phandle (struct device *dev , const char *phandle_name , int index );
look at that signature, so iconic π
β¨ ARGUMENTS β¨
devβ the pointer to the given device. like, the device you're already holding hands with π«Άphandle_nameβ name of the property holding a phandle value. it's the label on the box, basically πindexβ the index into the list of devfreq-event devices. bestie, this is the "which one tho" number π
β¨ DESCRIPTION β¨
note (and this is important, ngl) that this function returns the pointer of the devfreq-event device. that's the whole vibe check, fr fr. π
β¨ SEE ALSO β¨
peep the kernel file, it's right here:
- Kernel file
./drivers/devfreq/devfreq-event.c
and the rest of the squad, all in their own little man pages β¨
devfreq_event_enable_edev(9)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_count(9)devfreq_event_add_edev(9)devfreq_event_remove_edev(9)devm_devfreq_event_add_edev(9)devm_devfreq_event_remove_edev(9)
go read them. all of them. i'll wait. π
and that's the whole page, bestie π this lil gem lives at ./drivers/devfreq and it's dated October 2026 β so yes, future-dated, main character energy only π mwah, see you in the next SEE ALSO π§ββοΈ
π¦ 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