pinctrl_get_list_and_count(9)
π 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 frlistβ pointer for the list that gets found πcells_sizeβ pointer for the cell size that gets foundnr_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 π₯
- Kernel file
./drivers/pinctrl/devicetree.cβ the source, go read it, it ate π struct pinctrl_dt_map(9)pinctrl_count_index_with_args(9)pinctrl_copy_args(9)pinctrl_parse_index_with_args(9)
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
- 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