STRUCT PINCTRL_STATE(9)
struct pinctrl_state(9) β a pinctrl state for a device π
Hiii bestie, welcome to the Kernel API Manual β¨ this is one of those tiny little structs that holds the entire vibe of a pinctrl state together. It's not doing the loudest job in the world, but best believe it's doing it immaculately π
πΈ NAME πΈ
struct pinctrl_state β literally just a pinctrl state for a device, no cap π
β¨ SYNOPSIS β¨
Okay so the whole thing looks like this, and yes you can copy it exactly, I checked π«Ά
struct pinctrl_state {
struct list_head node;
const char *name;
struct list_head settings;
};
π Members π
Three little members, three little icons, let's go π
nodeβ this one is thelist nodefor thestatesfield ofstruct pinctrl. It's the little link that keeps this state hooked up to its friends πnameβ the name of this state. Main character label energy, fr fr π·οΈsettingsβ alistof settings for this state. All the little configs living their best life in here π
Not me emotionally attached to a three-field struct π she's small but she's everything.
π SEE ALSO π
If you're gonna fall down the pinctrl rabbit hole (and you will, bestie, it's giving 3am wiki binge), start here β kernel file ./drivers/pinctrl/core.h and all her sisters π
struct pinctrl_dev(9)struct pinctrl(9)struct pinctrl_setting_mux(9)struct pinctrl_setting_configs(9)struct pinctrl_setting(9)struct pin_desc(9)struct pinctrl_maps(9)struct group_desc(9)
Alright bestie, that's the whole page β go forth and slay your pinmuxing π
Source is ./drivers/pinctrl, dated October 2026, and this whole beautiful thing is filed under struct pinctrl_state(9) β periodt π β¨
π¦ 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