STRUCT PINCTRL_GPIO_RANGE(9)
π struct pinctrl_gpio_range π
okay so bestie, welcome to the Kernel API Manual entry for struct pinctrl_gpio_range β and it's giving "each pin controller can provide subranges of the GPIO number space to be handled by the controller." π
β¨ Like, that's the whole vibe. Every pin controller can hand off chunks of the GPIO number space for the controller to handle. Periodt.
β¨ SYNOPSIS β¨
struct pinctrl_gpio_range {
struct list_head node;
const char *name;
unsigned int id;
unsigned int base;
unsigned int pin_base;
unsigned int npins;
unsigned int const *pins;
struct gpio_chip *gc;
};
π«Ά Members π«Ά
nodeβ the list node, bestie. It's for internal use only, so don't make it main character. πnameβ a name for the chip in this range. cute little label energy. πidβ an ID number for the chip in this range. iykyk. πͺͺbaseβ the base offset of the GPIO range. like the starting point, no cap. πpin_baseβ the base pin number of the GPIO range ifpins == NULL. yes, conditional icon. πnpinsβ the number of pins in the GPIO range, including the base number. count 'em, bestie. π’pinsβ an enumeration of pins in the GPIO range, orNULL. literally either a whole list or nothing. β¨gcβ an optional pointer to agpio_chip. optional but iconic. π¦
π SEE ALSO π
Kernel file ./include/linux/pinctrl/pinctrl.h β and the whole friend group: struct pingroup(9), struct pinctrl_pin_desc(9), struct pinctrl_ops(9), struct pinctrl_desc(9), and struct pinfunction(9). go read those next, bestie, fr fr. π
no cap: the facts stay exactly as they are β the vibes are just cuter now. πβ¨
mwah π this has been your Kernel API Manual moment, sourced from ./include/linux/pinctrl, dated October 2026 β slay, bye 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