zynqmp_pinct...e_pin_groups(9)
π zynqmp_pinctrl_create_pin_groups
okay so bestie, we're in the Kernel API Manual today and this function is literally the group-chat admin that assigns every pin to its β¨correctβ¨ group. no chaos, no strays, everyone gets sorted. periodt.
πΈ NAME πΈ
zynqmp_pinctrl_create_pin_groups β assign pins to their respective groups π«Ά
β¨ SYNOPSIS β¨
int zynqmp_pinctrl_create_pin_groups (struct device *dev , struct
zynqmp_pctrl_group *groups , unsigned int pin );
π ARGUMENTS π
devβ Device pointer. the main character of the operation, honestly.groupsβ Groups data. this is where the sorted pins get dropped off πpinβ Pin number. the one pin we're currently vibe-checking.
π¦ DESCRIPTION π¦
So here's the tea: first we query firmware to find out which groups are actually available for the given pin. that's the intel run. π΅οΈββοΈ
Then, based on what the firmware sends back (those are the group IDs for the pin, iykyk), we add the pin number into the respective group's pin array. like adding your bestie to the right group chat and not the random one from camp. π
And once all the pins have been queried? each group is sitting there with its number of pins AND its pin numbers data. fully built, fully stocked, main character energy π
π₯ RETURN π₯
0 on success, else an error code. that's it. zero is the slay, anything else is the π.
π SEE ALSO π
Kernel file ./drivers/pinctrl/pinctrl-zynqmp.c, plus the whole friend group:
- struct
zynqmp_pmux_function(9) - struct
zynqmp_pinctrl(9) - struct
zynqmp_pctrl_group(9) zynqmp_pmux_get_function_groups(9)zynqmp_pinmux_set_mux(9)zynqmp_pinconf_cfg_get(9)zynqmp_pinconf_cfg_set(9)zynqmp_pinconf_group_set(9)zynqmp_pinctrl_prepare_func_groups(9)zynqmp_pinctrl_prepare_group_pins(9)zynqmp_pinctrl_prepare_function_info(9)zynqmp_pinctrl_prepare_pin_desc(9)
fr fr that's the whole page. go read the source if you want more lore π
okay that's a wrap bestie!! this lil masterpiece lives in ./drivers/pinctrl, dropped October 2026, and it's filed under the zynqmp_pinctrl_create_pin_groups(9) name π mwah, go touch a pin πβ¨
π¦ 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