devfreq_eve...v_by_phandle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 ✨


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