STRUCT SYSCON_GPIO_DATA(9)
π struct syscon_gpio_data(9) β the kernel API manual, but make it cute π
okay bestie, pull up a chair because we're diving into struct syscon_gpio_data(9) β yes that's the manual page name AND the whole vibe. This little icon is literally the Configuration for the device, and the way it just sits there holding all the syscon GPIO settings? main character energy fr fr. π
β¨ NAME β¨
struct syscon_gpio_data β Configuration for the device. that's it, that's the tweet π¦
πΈ SYNOPSIS πΈ
struct syscon_gpio_data {
unsigned int flags;
unsigned int bit_count;
unsigned int dat_bit_offset;
unsigned int dir_bit_offset;
int (*set)(struct gpio_chip *chip, unsigned int offset, int value);
};
like, look at her. five members. not one more, not one less. iconic. π
π¦ Members π¦
get ready, we're doing a member-by-member vibe check π
flagsβ the set ofGPIO_SYSCON_FEAT_flags, and there are three of them bestie:GPIO_SYSCON_FEAT_IN: the GPIOs support input π«ΆGPIO_SYSCON_FEAT_OUT: the GPIOs support output β¨GPIO_SYSCON_FEAT_DIR: the GPIOs support switching direction π₯
bit_countβ the number of bits used as GPIOs. literally just a count, no drama.dat_bit_offsetβ the offset (in bits) to the first GPIO bit. think of it as the lil runway before the data starts π«dir_bit_offsetβ an optional offset (in bits) to the first bit you use to switch GPIO direction. note the "optional" β and it's used with theGPIO_SYSCON_FEAT_DIRflag, so don't be out here using it on its own, iykyk πsetβ the hardware-specific callback that assigns the output value for the signal"offset". hw specific!! so it's giving β¨specializedβ¨
ngl, no dangerous or deprecated stuff on this page β she's a clean, well-behaved struct. slay. π
π SEE ALSO π
- Kernel file
./drivers/gpio/gpio-syscon.cβ go read it, that's where the real lore lives π
and that's the whole page, bestie! no cap, you ate that. π
source/version: ./drivers/gpio Β· dated October 2026 Β· struct syscon_gpio_data(9) π β mwah, go forth and GPIO π§ββοΈ
π¦ 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