STRUCT TB10X_PINCTRL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, welcome to the Kernel API Manual entry for struct tb10x_pinctrl β€” and the official one-liner is literally struct tb10x_pinctrl - TB10x pin controller internal state. that's the whole vibe: it's the internal state of the TB10x pin controller, and we're about to unpack every single member like it's a group chat screenshot πŸ’…βœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct tb10x_pinctrl {
    struct pinctrl_dev *pctl;
    void __iomem *base;
    const struct tb10x_pinfuncgrp *pingroups;
    unsigned int pinfuncgrpcnt;
    unsigned int pinfuncnt;
    struct mutex mutex;
    struct tb10x_port ports[TB10X_PORTS];
    unsigned long gpios[BITS_TO_LONGS( MAX_PIN + 1)];
    struct tb10x_of_pinfunc pinfuncs[];
};

πŸŽ€ Members πŸŽ€

  • pctl β€” pointer to the pinctrl_dev structure of this pin controller. main character pointer energy, fr fr πŸ‘‘
  • base β€” register set base address. that's where the registers live, bestie 🏠
  • pingroups β€” pointer to an array of the pin groups this driver manages. it's giving "here's my little array of groups" 🫢
  • pinfuncgrpcnt β€” number of pingroups in pingroups. yes, it's the count for the pingroups array, no cap πŸ”’
  • pinfuncnt β€” number of pin functions in pinfuncs. another count, another slay πŸ’…
  • mutex β€” mutex for exclusive access to a pin controller's state. lock it down so nobody's racing the state, periodt πŸ”’
  • ports β€” current state of each port. it's struct tb10x_port ports[TB10X_PORTS];, so yes, one state per port πŸ’–
  • gpios β€” Indicates if a given pin is currently used as GPIO (1) or not (0). literally a yes/no vibe check per pin: 1 for GPIO, 0 for not-GPIO ✨
  • pinfuncs β€” flexible array of pin functions this driver manages. flexible array, flexible queen 🌈

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/pinctrl/pinctrl-tb10x.c β€” go read the source, bestie, it's right there 🧚
  • struct tb10x_port(9) β€” the port struct said "don't forget me" and honestly? valid πŸ’œ
  • ./drivers/pinctrl β€” the directory itself is also in the see-also lineup, because we stay thorough 🌸

mwah πŸ’‹ that's the page! source/version: ./drivers/pinctrl, date: October 2026, and the manual is struct tb10x_pinctrl(9) β€” catch you in the kernel, bestie 🫢🌈⭐

πŸ“¦ where this page comes from