of_graph_is_present(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 of_graph_is_present (9) 🌸

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this one's a tiny little function but she's lowkey iconic πŸ’… we're checking whether a device tree node actually has a graph in it, no cap.


✨ NAME ✨

of_graph_is_present β€” the vibe check for whether a graph exists at all πŸ‘‘


✨ SYNOPSIS ✨

bool of_graph_is_present (const struct device_node *node );

literally one argument, one boolean, zero drama πŸŽ€


✨ ARGUMENTS ✨

  • node β€” a pointer to the device_node that's holding the graph port. fr fr just hand her the node and she'll look inside 🫢

✨ RETURN ✨

She returns true if node has a port sub-node β€” or ports (with a port) sub-node β€” and false otherwise. that's it, that's the whole personality 😭✨

ngl this is the "does the graph exist or not" question, not the "is the graph any good" question. don't @ me.

✨ SEE ALSO ✨

the whole friend group πŸ«‚ β€” you can find all of them in the Kernel file ./drivers/of/property.c:


and that's the tea β˜• source lives at ./drivers/of, dated October 2026, and yes she's still serving of_graph_is_present(9) realness πŸ’–βœ¨πŸŽ€πŸ¦‹ slay, go read your device trees bestie πŸŒˆπŸ’œ

πŸ“¦ where this page comes from