STRUCT GPIOLINE_INFO(9)
π struct gpioline_info(9) β the Kernel API Manual entry π
okay so bestie, welcome to the Kernel API Manual page for struct gpioline_info! No cap, this one is giving βold API that still shows up in the group chat.β Itβs the struct that carries information about a certain GPIO line. Iykyk. π
πΈ NAME πΈ
struct gpioline_info β information about a certain GPIO line. Thatβs literally it, bestie. Not me being obsessed with a kernel struct, but here we are. β¨
π SYNOPSIS π
struct gpioline_info {
__u32 line_offset;
__u32 flags;
char name[GPIO_MAX_NAME_SIZE];
char consumer[GPIO_MAX_NAME_SIZE];
};
lowkey iconic layout, fr fr. Keep those field names exactly as they are. π
π¦ Members π¦
line_offsetβ the local offset on this GPIO device; you fill this in when youβre requesting the line information from the kernel. Slay, thatβs your spot on the device. π―flagsβ various flags for this line. Thatβs the whole description, bestie β itβs giving βmiscellaneous flag energy,β so donβt go inventing extra meanings. πnameβ the name of this GPIO line, such as the output pin of the line on the chip, a rail or a pin header name on a board, as specified by the gpio chip. It may be empty (i.e.name[0] == ' '). Not me clocking that literal space in the check, but thatβs what the page says. π«Άconsumerβ a functional name for the consumer of this GPIO line as set by whatever is using it. It will be empty if there is no current user, but it may also be empty if the consumer doesnβt set this up. Highkey important: empty does not always mean βnobodyβs home.β π
π Note π
π¨ Deprecation vibe check: this struct is part of ABI v1 and is deprecated. Use ABI v2 and struct gpio_v2_line_info instead. Periodt. This is literally the manual telling you to upgrade, bestie. π
π SEE ALSO π
Kernel file ./include/uapi/linux/gpio.h, plus these iconic cross-references β all of them, no skips:
struct gpiochip_info(9)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_changed(9)struct gpiohandle_request(9)struct gpiohandle_config(9)struct gpiohandle_data(9)struct gpioevent_request(9)struct gpioevent_data(9)
xoxo, your kernel bestie π β this page came from the ./include/uapi/linux source, dated October 2026, and the title on the tin is struct gpioline_info(9). Slay and stay deprecated-aware. π
β¨
π¦ 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