STRUCT GPIOLINE_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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