fwnode_prop...perty_string(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fwnode_prop...perty_string(9) β€” from the Kernel API Manual, bestie 🫢

okay so real talk, this is a Kernel API Manual page and the name got squished by the man-page width police, but we move. It's fwnode_property_match_property_string and yes it does exactly what it says on the tin ✨


🌸 NAME 🌸

fwnode_property_match_property_string β€” find a property string value in an array and return index πŸ’–


✨ SYNOPSIS ✨

int fwnode_property_match_property_string (const struct fwnode_handle
*fwnode , const char *propname , const char * const *array , size_t n );

πŸŽ€ ARGUMENTS πŸŽ€

  • fwnode β€” the Firmware node you're getting the property of, like the main character of this whole operation πŸ‘‘
  • propname β€” Name of the property holding the string value. iykyk, it's the label you're searching for πŸ“›
  • array β€” String array to search in. the lineup, the roster, the group chat 🫢
  • n β€” Size of the array. how many besties are in the list, no cap πŸ”’

πŸ¦‹ DESCRIPTION πŸ¦‹

Find a property string value in a given array and if it is found return the index back. that's it, that's the vibe check 🌈 literally just: does this string live in this array, and if so, where at? obsessed πŸ’…


⭐ RETURN ⭐

  • index, starting from 0, if the string value was found in the array (success) β€” slay, we found it πŸŽ‰
  • -ENOENT when the string value was not found in the array β€” it's giving not-in-the-group-chat 😭
  • -EINVAL if given arguments are not valid β€” something's off, check ur inputs bestie πŸ™ˆ
  • -ENODATA if the property does not have a value β€” the property ghosted us πŸ’€
  • -EPROTO or -EILSEQ if the property is not a string β€” wrong type energy fr fr
  • -ENXIO if no suitable firmware interface is present β€” nobody's home πŸšͺ

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/base/property.c, plus this whole iconic extended universe of functions:


🧚 quick reminder: the negative returns are errors, not vibes. a 0 or higher? that's the index, bestie. a negative? that's the kernel saying "no <3". don't mix them up πŸ’œ

and that's the whole page, periodt πŸŽ€ it lives down in ./drivers/base, dated October 2026, and it matches the fwnode_prop...perty_string(9) entry you were looking for. go forth and match those strings, icon πŸŒŸπŸ’…

πŸ“¦ where this page comes from