fwnode_property_present(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– fwnode_property_present(9) ๐Ÿ’–

okay bestie, welcome to the Kernel API Manual โ€” yes this is a real manpage for real kernel code, and yes it's lowkey one of the most useful little gremlins in drivers/base. Let's get into it โœจ


๐ŸŒธ NAME ๐ŸŒธ

fwnode_property_present โ€” check if a property of a firmware node is present

Like, is the thing in the thing? That's the whole gig. No cap ๐Ÿซถ


โœจ SYNOPSIS โœจ

bool fwnode_property_present (const struct fwnode_handle *fwnode , const
char *propname );

Two args, one bool coming back at you. That's it. Iconic behaviour, honestly ๐Ÿ’…


๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • fwnode โ€” the firmware node whose property you wanna check ๐Ÿ‘€ literally the thing you're snooping on
  • propname โ€” name of the property, aka what you're looking for inside it

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

So here's the tea: this function checks if the property propname is present in the firmware node description. ๐ŸŒˆ

And ngl, this is the unambiguous way to check that a given property is present in the firmware node description. Like, if you want the answer without any "well technicallyโ€ฆ" energy, this is her. Main character energy fr fr ๐Ÿ‘‘


โญ RETURN โญ

  • true if the property propname is present ๐Ÿ’– slay
  • otherwise, it returns false ๐Ÿ˜ญ (the property is simply not there, it's giving absent)

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

Kernel file ./drivers/base/property.c โ€” plus the whole extended friend group:

ikyk what a reading list that is ๐Ÿ˜ฎโ€๐Ÿ’จ


๐Ÿ’€ real talk: if you're here checking a property, you're already in the right place. This is the unambiguous check. Don't go guessing, bestie.

that's the whole page, so proud of you for reading to the end ๐Ÿงš

later, legend โ€” this gem came from ./drivers/base in the Kernel API Manual, dated October 2026 ๐Ÿ’œ๐Ÿ“

๐Ÿ“ฆ where this page comes from