STRUCT GPIO_DESCS(9)
π struct gpio_descs(9) π
okay so bestie, we're in the Kernel API Manual and this page is literally all about struct gpio_descs(9) β the struct containing an array of descriptors that can be obtained using gpiod_get_array(). it's giving descriptor squad energy, no cap β¨
πΈ NAME πΈ
struct gpio_descs β the struct containing an array of descriptors that can be obtained using gpiod_get_array(). lowkey iconic, highkey useful π
β¨ SYNOPSIS β¨
struct gpio_descs {
struct gpio_array *info;
unsigned int ndescs;
struct gpio_desc *desc[];
};
π«Ά Members π«Ά
infoβ Pointer to the opaquegpio_arraystructure. it's opaque, bestie, so we don't peek behind the curtain πndescsβ Number of held descriptors. the headcount of this little descriptor party πdescβ Array of pointers to GPIO descriptors. yes, an array, and yes, it ate π₯
π₯ SEE ALSO π₯
- Kernel file
./include/linux/gpio/consumer.h enum gpiod_flags(9)devm_fwnode_gpiod_get_optional(9)
okay bye bestie π
this page comes from ./include/linux/gpio, dated October 2026, and it's titled struct gpio_descs(9). mwah π«Άπ
π¦ 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