STRUCT TB10X_PINCTRL(9)
πΈ 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 thepinctrl_devstructure 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 ofpingroupsinpingroups. yes, it's the count for thepingroupsarray, no cap π’pinfuncntβ number of pin functions inpinfuncs. 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'sstruct 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:1for GPIO,0for 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
- 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