STRUCT AT91_PIN_GROUP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct at91_pin_group(9) πŸ’…

okay so this is a page from the Kernel API Manual and it's literally about struct at91_pin_group β€” bestie, it's the little glow-up container that describes an At91 pin group. yes we're doing kernel pinctrl today, and yes you're gonna slay it πŸŽ€


✨ NAME ✨

struct at91_pin_group β€” describes an At91 pin group. that's the whole vibe. it's giving "one group, one struct, zero drama" πŸ’–


🌸 SYNOPSIS 🌸

here's the exact shape of it, no cap, copy it character for character:

struct at91_pin_group {
    const char              *name;
    struct at91_pmx_pin     *pins_conf;
    unsigned int            *pins;
    unsigned npins;
 };

like… look at her. four members, perfectly curated, main character energy πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • name β€” the name of this specific pin group. it's the group's whole identity, its little name tag at the party 🫢
  • pins_conf β€” the mux mode for each pin in this group. and here's the thing: the size of this array is the same as pins. matching sizes, matching energy, we love a coordinated moment ✨
  • pins β€” an array of discrete physical pins used in this group, taken from the driver-local pin enumeration space. yes, "discrete" and "driver-local pin enumeration space" β€” that's the exact wording, she's fancy like that πŸ’…
  • npins β€” the number of pins in this group array, i.e. the number of elements in .pins so we can iterate over that array. it's the count, the headcount, the "how many besties are in this group chat" number πŸ”₯

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/pinctrl/pinctrl-at91.c
  • struct at91_gpio_chip(9)
  • struct at91_pmx_func(9)
  • struct at91_pmx_pin(9)
  • struct at91_pinctrl_mux_ops(9)
lowkey go read all of them, iykyk β€” they're the whole friend group and this struct is just one of them 🌈

and that's the page, bestie 🧚 no notes, ate and left no crumbs. this lil writeup lives in ./drivers/pinctrl and it's dated October 2026 β€” see you in the kernel tree, mwah πŸ’‹β­

πŸ“¦ where this page comes from