fwnode_is_ancestor_of(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fwnode_is_ancestor_of ✨

okay so this is a page from the Kernel API Manual and it's literally the vibes check for firmware nodes β€” like, is this one your ancestor or not? bestie, it's a one-function bop and we're gonna read it together 🫢


🌸 NAME 🌸

fwnode_is_ancestor_of β€” test if @ancestor is ancestor of @child


πŸŽ€ SYNOPSIS πŸŽ€

bool fwnode_is_ancestor_of (const struct fwnode_handle *ancestor , const
       struct fwnode_handle *child );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ancestor β€” the firmware we're testing to see if it's the ancestor πŸ‘‘ (the one we're checking for ancestor-ness)
  • child β€” the firmware we're testing to see if it's the child πŸ“ (the one we're checking as the possible descendant)

πŸ’– DESCRIPTION πŸ’–

So the way this works: a node counts as an ancestor of itself too. yes, literally self-ancestor, main character energy, it contains itself πŸ™ˆ no cap.


⭐ RETURN ⭐

You get true if ancestor is an ancestor of child. Otherwise? false. simple as that, periodt πŸ’…


🌈 SEE ALSO 🌈

Kernel file ./drivers/base/core.c β€” go read these, they're all in the same friend group:


ok that's the whole page, nothing skipped, you're welcome πŸ’œ

and that's a wrap bestie!! this one lives in ./drivers/base and it's dated October 2026 β€” so like, keep it in the group chat, mwah πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from