pinctrl_cou...ex_with_args(9)
π 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 π¦
- Kernel file
./drivers/pinctrl/devicetree.c struct pinctrl_dt_map(9)pinctrl_get_list_and_count(9)pinctrl_copy_args(9)pinctrl_parse_index_with_args(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms