of_property_present(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ of_property_present(9) β€” like, the whole vibe check for one tiny lil property πŸ¦‹

okay so real talk, this one lives in the Kernel API Manual, and it is genuinely one of the most "yes bestie, just tell me if it's there" functions in the whole device tree situation. no drama, no parsing, no allocating β€” just a yes or a no. iconic behaviour honestly πŸ’…


✨ NAME ✨

of_property_present β€” the function that checks whether a property is present in a node. that's it. that's the whole job. she's a specialist πŸŽ€


🌸 SYNOPSIS 🌸

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

she returns a bool, she takes two things, she does not elaborate. main character energy fr fr πŸ’œ


🫢 ARGUMENTS 🫢

  • np β€” the device node you wanna search for the property. like, the node. the place where the property would be chillin' if it exists. 🌈
  • propname β€” the name of the property you're searching for. the actual string you're hunting down. πŸ”

πŸ’– DESCRIPTION πŸ’–

so basically πŸ’β€β™€οΈ you're testing for a property being present in a device node. that's the whole thing. you hand her a node, you hand her a property name, and she goes and checks. no cap, that is the entire description β€” she is not a complicated girl, she just knows what she's about ✨

like, the point is present. is it there or is it not there. that's the question, that's the function, periodt. πŸ‘‘

πŸŽ€ RETURN πŸŽ€

  • true β€” if the property exists πŸ’š
  • false β€” otherwise πŸ₯€

literally a two-outcome queen. no in-between, no "maybe", no "it depends". iykyk 😭


⭐ SEE ALSO ⭐

okay bestie this list is LONG, so buckle up β€” but these are all her neighbours in the kernel file ./include/linux/of.h and they're all lowkey obsessed with the same device-tree situation 🧚:

like, go off, entire of.h friend group πŸ«ΆπŸ’€


aaaand that's the page!! 🌸 source situation: this one comes from ./include/linux, dated October 2026, and yes the manual name is of_property_present(9) in case you forgot already πŸ’– hope that helped bestie, go forth and check your properties βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from