fwnode_get_next_parent_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ fwnode_get_next_parent_dev πŸ¦‹

okay so welcome to the Kernel API Manual bestie, we're doing a little ancestry hunt today πŸ’…

✨ NAME ✨

fwnode_get_next_parent_dev β€” Find device of closest ancestor fwnode 🧚


🌸 SYNOPSIS 🌸

struct device * fwnode_get_next_parent_dev (const struct fwnode_handle
*fwnode );

πŸŽ€ ARGUMENTS πŸŽ€

  • fwnode β€” firmware node 🫢

πŸ’– DESCRIPTION πŸ’–

so basically, you hand this function a firmware node (a fwnode), and it goes looking up the family tree πŸŽ„ β€” it finds the closest ancestor firmware node that actually has a corresponding struct device chilling with it, and hands you back that struct device. no cap, that's it, that's the whole vibe ✨

⚠️ bestie listen β€” the caller is responsible for calling put_device on the returned device pointer. like, you got the reference, you give it back. don't be that person πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

a pointer to the device of the fwnode's closest ancestor πŸ‘‘


⭐ SEE ALSO ⭐

Kernel file ./drivers/base/core.c β€” okay so here's the entire squad, and yes we're listing every single one because they all ate πŸ’…:


and that's the whole page, bestie β€” no skips, no cuts, we kept every single reference because we respect the lore 🫢

this cutie lives under ./drivers/base and the date on it is October 2026, and it's filed under fwnode_get_next_parent_dev(9) β€” go forth and put_device responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from