STRUCT GPIOCHIP_INFO(9)
π struct gpiochip_info(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes that's the manual name, we're in kernel land now, buckle up π this page is all about struct gpiochip_info, and it's literally the lil info packet that tells you everything about a certain GPIO chip. iykyk πΈ
β¨ NAME β¨
struct gpiochip_info β Information about a certain GPIO chip π¦
π«Ά SYNOPSIS π«Ά
struct gpiochip_info {
char name[GPIO_MAX_NAME_SIZE];
char label[GPIO_MAX_NAME_SIZE];
__u32 lines;
};
that's the whole vibe. three fields, no drama, main character energy π
π Members π
nameβ the Linux kernel name of this GPIO chip β¨ like, its government name, the one the kernel actually calls it by.labelβ a functional name for this GPIO chip, such as a product number π¦ β and heads up, it may be empty (i.e.label[0] == ' ') π« so don't be shocked when it gives you nothing.linesβ number of GPIO lines on this chip π₯ like, how many pins are on the roster fr fr.
π SEE ALSO π
bestie there are SO many siblings, the whole family is in the kernel file ./include/uapi/linux/gpio.h π:
enum gpio_v2_line_flag(9)struct gpio_v2_line_values(9)enum gpio_v2_line_attr_id(9)struct gpio_v2_line_attribute(9)struct gpio_v2_line_config_attribute(9)struct gpio_v2_line_config(9)struct gpio_v2_line_request(9)struct gpio_v2_line_info(9)enum gpio_v2_line_changed_type(9)struct gpio_v2_line_info_changed(9)enum gpio_v2_line_event_id(9)struct gpio_v2_line_event(9)struct gpioline_info(9)struct gpioline_info_changed(9)struct gpiohandle_request(9)struct gpiohandle_config(9)struct gpiohandle_data(9)struct gpioevent_request(9)struct gpioevent_data(9)
that's a whole friend group and you're invited π§π
ok and finally the cute sign-off π β this lil page lives in ./include/uapi/linux, and it's dated October 2026 β so yeah, fresh off the press. periodt π
<!-- HEADER_KEPT_INLINE_ABOVE -->
π¦ 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