of_link_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so picture this: you're deep in the Kernel API Manual, section 9, and you've stumbled onto of_link_property β€” and honestly? she's kind of a big deal. Let's get into it πŸ’…


🌸 NAME 🌸

of_link_property β€” creates device links to the suppliers that are listed inside a property. literally her whole job 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int of_link_property (struct device_node *con_np , const char *prop_name
);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • con_np β€” the consumer device tree node, aka the one holding the property. she's the consumer, she contains the property, that's her whole vibe ✨
  • prop_name β€” the name of the property to be parsed. yes bestie, this is the one you're asking her to look at πŸ”

πŸ’– DESCRIPTION πŸ’–

First things first: this function checks whether the property prop_name β€” the one that's present in the con_np device tree node β€” is one of the known common device tree bindings that list phandles to suppliers. if it isn't one of those? she literally does nothing. no drama, no link, no nothing. she just moves on πŸ™ˆ

But if prop_name is one of them? okay now we're in main character energy πŸ”₯ this function attempts to create fwnode links from the consumer device tree node con_np to all the supplier device tree nodes listed in prop_name. all of them. not just the first one. not just the cute ones.

⚠️ okay important caveat incoming, pay attention: any failed attempt to create a fwnode link will NOT result in an immediate return. nope. no early exit, no bailing on the group chat. of_link_property must create links to all the available supplier device tree nodes even when attempts to create a link to one or more suppliers fail. she keeps going, she links everybody, that's the rule πŸ’€

🌈 SEE ALSO 🌈

that's a lot of friends, I know, but she's social 🧚


and that's the whole page bestie!! πŸ’œ this one's from ./drivers/of, dated October 2026, and it's the of_link_property(9) page β€” go forth and link those suppliers, you've got this πŸ“β­

πŸ“¦ where this page comes from