of_property_read_bool(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to of_property_read_bool(9) β€” that's the title β€” and this whole page is from the Kernel API Manual. πŸ’– The name is literally Find a property: of_property_read_bool goes looking for a property. slay.

✨ SYNOPSIS ✨

this is the signature, no cap β€” copy it exactly:

bool of_property_read_bool (const struct device_node *np , const char
       *propname );

🫢 ARGUMENTS 🫢

  • np β€” the device node from which the property value is to be read. it's giving "where we're reading from" energy, fr fr.
  • propname β€” the name of the property to be searched. yes, the string you're hunting for. πŸ”

πŸ’… DESCRIPTION πŸ’…

so what it does: search for a boolean property in a device node. simple, iconic, done. ✨

using it on non-boolean property types is deprecated β€” like, deprecated deprecated. so keep it boolean, bestie. πŸ’€

πŸ”₯ RETURN πŸ”₯

true if the property exists, false otherwise. that's it. that's the whole return vibe. πŸ‘‘

🌈 SEE ALSO 🌈

go read these next, bestie β€” same kernel-API universe:


xoxo, source: ./drivers/of; date: October 2026 β€” bye bestie! 🫢

πŸ“¦ where this page comes from