STRUCT PINFUNCTION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

struct pinfunction(9) πŸ’…

okay so bestie, welcome to the <struct pinfunction> page from the Kernel API Manual β€” it’s giving β€œtiny struct, very important pinctrl energy,” and we’re gonna read it together. No cap. 🫢


🌸 NAME 🌸

struct pinfunction β€” literally β€œDescription about a function.” iconic, concise, periodt. ✨


✨ SYNOPSIS ✨

here’s the whole struct, exact vibes, don’t touch the formatting:

       struct pinfunction {
           const char *name;
           const char * const *groups;
           size_t ngroups;
           unsigned long flags;
        };

πŸŽ€ Members πŸŽ€

  • name β€” the name of the function, bestie. that’s it, that’s the field. πŸ’–
  • groups β€” an array of groups for this function β€” like the function’s whole friend group. πŸ¦‹
  • ngroups β€” number of groups in groups. yes, it’s the count. she keeps the friend group organized. πŸŽ€
  • flags β€” additional pin function flags. extra little details, lowkey essential. ⭐

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/pinctrl/pinctrl.h is right there in the source-y bestie zone, and the see-also squad is:

  • struct pingroup(9)
  • struct pinctrl_pin_desc(9)
  • struct pinctrl_gpio_range(9)
  • struct pinctrl_ops(9)
  • struct pinctrl_desc(9)

go peek at those too, iykyk. πŸ‘‘


cute sign-off: source/version ./include/linux/pinctrl, date October 2026, page struct pinfunction(9) β€” made with πŸ’– and way too much pinctrl enthusiasm. 🌈

πŸ“¦ where this page comes from