STRUCT SAMSUNG_GPIO_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct samsung_gpio_cfg(9) β€” the Kernel API Manual moment

okay so bestie, welcome to struct samsung_gpio_cfg(9) from the Kernel API Manual β€” it's giving "GPIO bank lore" and honestly we're obsessed. sit down, grab a strawberry drink πŸ“, and let's get into it.


✨ SYNOPSIS ✨

like, here's the whole struct, character for character, no cap:

struct samsung_gpio_cfg {
    unsigned int    cfg_eint;
    samsung_gpio_pull_t (*get_pull)(struct samsung_gpio_chip *chip,
unsigned offs);
    int (*set_pull)(struct samsung_gpio_chip *chip, unsigned offs,
samsung_gpio_pull_t pull);
    unsigned (*get_config)(struct samsung_gpio_chip *chip, unsigned
offs);
    int (*set_config)(struct samsung_gpio_chip *chip, unsigned offs,
unsigned config);
 };

🫢 Members

  • cfg_eint β€” the configuration setting you use when this thing is being used as an external interrupt source. external interrupt main character energy for real πŸ’…
  • get_pull β€” reads the current pull configuration for the GPIO. it's the "what's the vibe rn" function 🌸
  • set_pull β€” sets the current pull configuration for the GPIO. makeover time ✨
  • get_config β€” reads the current configuration for the GPIO. again: vibe check πŸ”
  • set_config β€” sets the current configuration for the GPIO. glow-up, applied πŸ”₯

🌈 Description 🌈

okay so here's the tea πŸ«– β€” each chip can have more than one type of GPIO bank available, and some of them straight up have different capabilites even when they share the exact same control register layouts. like, same outfit, different personality, iykyk 😭

so what you do is provide a point to the vector control routine, and provide any per-bank configuration information that other systems (hi, the external interrupt code πŸ‘‹) are gonna need.

and then there's this little run of names tagged along with it: sa samsung_gpio_cfgpin sa s3c_gpio_getcfg sa s3c_gpio_setpull sa s3c_gpio_getpull β€” they come as a package deal, bestie, we don't make the rules πŸ’œ


πŸ¦‹ SEE ALSO πŸ¦‹

go read them, you'll slay πŸ’…


that's the whole page, periodt. πŸŽ€ this icon of a manpage lives at ./arch/arm/mach-s3c, dated October 2026 β€” catch you in the next one, mwah πŸ’–

πŸ“¦ where this page comes from