STRUCT PINCTRL_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 the list node for the states field of struct 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 β€” a list of 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