fwnode_get_name_prefix(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– fwnode_get_name_prefix(9) πŸ’–

okay bestie, so this one lives in the Kernel API Manual and it is exactly the little helper you want when you're about to print a firmware node and you need everybody to know which one you mean πŸŽ€


✨ NAME ✨

fwnode_get_name_prefix β€” grab the prefix of a node so you can print it, that's literally the whole job πŸ’…


🌸 SYNOPSIS 🌸

const char * fwnode_get_name_prefix (const struct fwnode_handle *fwnode
);

like, one argument, const pointer, returns a const char * β€” clean, minimal, iconic πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • fwnode β€” the firmware node. that's it. that's the whole input. give it a node and it does the thing 🫢

⭐ RETURN ⭐

it hands you back the prefix of a node, and the whole point of it is that it's intended to be printed right before the node β€” so you stick it in front and it just works ✨

and here's the cute part: the prefix also does double duty as a separator between the nodes, so it's giving both "label" and "spacer" energy at the same time. not me being obsessed with a string πŸ’€


🌈 SEE ALSO 🌈

the kernel file it hangs out in is ./drivers/base/property.c, and honestly the whole friend group is here, no cap:

like I said. the whole group chat 😭


that's the page bestie, go forth and prefix responsibly πŸ’œ

sign-off szn: this lil beauty comes from ./drivers/base and it's dated October 2026 β€” the fwnode_get_name_prefix(9) page, Kernel API Manual, that's the one πŸ§šβœ¨πŸ’–

πŸ“¦ where this page comes from