pinctrl_cou...ex_with_args(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pinctrl_count_index_with_args(9) β€” the NAME section, but make it cute

okay so bestie, welcome to the Kernel API Manual page for pinctrl_cou...ex_with_args(9) (yes the header truncates it, the actual grown-up name is pinctrl_count_index_with_args, iykyk). Official vibe: Count number of elements in a pinctrl entry. That's it, that's the whole job ✨


🌸 SYNOPSIS 🌸

int pinctrl_count_index_with_args (const struct device_node *np , const
char *list_name );

she returns an int, she takes two args, she's booked and busy πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” pointer to device node with the property 🫢 literally just a pointer to the node that's holding the property, bestie.
  • list_name β€” property that contains the list πŸ“‹ the actual name of the property you're digging through.

✨ DESCRIPTION ✨

So what she does: counts the number of elements in a pinctrl array β€” and that array is the specific situation where each entry is an index within the controller plus a number of u32 entries specified for each entry. Two-part entries, one cute little count πŸ”₯

Heads up, no cap: the device_node is always for the parent pin controller device. Always always. Don't come at her with some other node πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

all her besties in the pinctrl friend group, go say hi πŸ’œ


and that's the page, periodt πŸŽ€ it lives under ./drivers/pinctrl in the kernel tree, dated October 2026, and it goes by pinctrl_cou...ex_with_args(9) in the footer too β€” icon behaviour, we stan πŸ˜­πŸ‘‘

πŸ“¦ where this page comes from