zynqmp_pinct...e_pin_groups(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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