STRUCT GPIOCHIP_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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