parse_suffix_prop_cells(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 parse_suffix_prop_cells(9) 🌸

okay so bestie, welcome to the Kernel API Manual entry for parse_suffix_prop_cells β€” it's giving "device tree property parser with a very specific suffix situation," and honestly the vibes are immaculate. πŸ¦‹


πŸ’– NAME πŸ’–

parse_suffix_prop_cells β€” suffix property parsing function for suppliers ✨

✨ SYNOPSIS ✨

struct device_node * parse_suffix_prop_cells (struct device_node *np ,
const char *prop_name , int index , const char *suffix , const char
*cells_name );

🫢 ARGUMENTS 🫢

  • np β€” pointer to the device tree node containing a list. 🌈
  • prop_name β€” name of the property to be parsed. Expected to hold phandle values. πŸ’«
  • index β€” for properties holding a list of phandles, this is the index into the list. πŸ”₯
  • suffix β€” property suffix that is known to contain list of phandle(s) to supplier(s). πŸŽ€
  • cells_name β€” property name that specifies phandles' arguments count. πŸ‘‘

πŸ’… DESCRIPTION πŸ’…

okay so this is literally a helper function to parse properties that have a known fixed suffix and are a list of phandles and phandle arguments. no cap, that's the whole assignment. 🧚

πŸ‘‘ RETURN πŸ‘‘

  • phandle node pointer with refcount incremented. Caller must of_node_put on it when done. 🫢 this is the important part, bestie β€” don't forget of_node_put when you're done!
  • NULL if no phandle found at index. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/of/property.c

πŸ’– signing off from ./drivers/of, October 2026 edition β€” this was parse_suffix_prop_cells(9), mwah πŸ’…βœ¨

πŸ“¦ where this page comes from