pinctrl_get_list_and_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pinctrl_get_list_and_count(9) πŸ’…

okay so this is a page straight out of the Kernel API Manual, and it's literally about pinctrl_get_list_and_count β€” the function that grabs you a list and tells you its cell size and element count all in one go. bestie, it's giving one-stop shop πŸŽ€


✨ NAME ✨

pinctrl_get_list_and_count β€” gets the list and it's cell size and number πŸ¦‹

(and yes, the apostrophe situation is exactly as the kernel wrote it, don't come for me 😭)


🌸 SYNOPSIS 🌸

int pinctrl_get_list_and_count (const struct device_node *np ,
                                const char *list_name ,
                                const __be32 **list ,
                                int *cells_size ,
                                int *nr_elements );

πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” pointer to the device node that's holding the property, iykyk πŸ‘‘
  • list_name β€” the property that contains the list, like the name tag on the list fr
  • list β€” pointer for the list that gets found πŸ“
  • cells_size β€” pointer for the cell size that gets found
  • nr_elements β€” pointer for the number of elements that gets found 🌈

πŸ’œ DESCRIPTION πŸ’œ

typically np is a single pinctrl entry that contains the list. that's the whole vibe ✨


πŸ”₯ SEE ALSO πŸ”₯


lowkey obsessed with how short this one is. no cap, the pinctrl family showed up as a whole friend group πŸ‘―β€β™€οΈ

okay that's the page!! 🫢 this little beauty lives in ./drivers/pinctrl, dated October 2026, and honestly? iconic. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from