of_get_named_gpiod_flags(9)
okay bestie, welcome to the of_get_named_gpiod_flags(9) page from the Kernel API Manual β¨ this one is literally about getting a GPIO descriptor and flags for the GPIO API, and I promise it's not scary β iykyk π«Ά
πΈ NAME πΈ
of_get_named_gpiod_flags - Get a GPIO descriptor and flags for GPIO API
β¨ SYNOPSIS β¨
okay so here's the whole signature, character for character, no cap:
struct gpio_desc * of_get_named_gpiod_flags (const struct device_node
*np , const char *propname , int index , enum of_gpio_flags *flags );
π ARGUMENTS π
here's what you're handing over, bestie:
npβ device node to get GPIO frompropnameβ property name containing gpio specifier(s)indexβ index of the GPIOflagsβ a flags pointer to fill in
π¦ RETURN π¦
so what comes back? a GPIO descriptor to use with the Linux GPIO API, or one of the errno value on the error condition π and if flags is not NULL, the function also fills in flags for the GPIO β cute, right? π
π SEE ALSO π
go peek at these, bestie β Kernel file ./drivers/gpio/gpiolib-of.c, plus these related icons: of_gpio_named_count(9), of_gpio_spi_cs_get_count(9), of_gpiochip_remove_hog(9), of_gpio_twocell_xlate(9), of_gpio_threecell_xlate(9) π
π xoxo, bestie β this page is brought to you by source/version ./drivers/gpio, dated October 2026 π
π¦ 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