STRUCT SAMSUNG_GPIO_CFG(9)
π 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 π¦
- Kernel file
./arch/arm/mach-s3c/gpio-cfg.h s3c_gpio_cfgpin(9)s3c_gpio_cfgpin_range(9)s3c_gpio_setpull(9)s3c_gpio_cfgall_range(9)
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
- 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