devm_gpiod_put_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_gpiod_put_array β€” the kernel API manual, bestie edition ✨

okay so you're in the Kernel API Manual and the star of the show today is devm_gpiod_put_array(9). buckle up πŸŽ€


🌸 NAME 🌸

devm_gpiod_put_array β€” it's the resource-managed gpiod_put_array(), no cap πŸ’–


✨ SYNOPSIS ✨

void devm_gpiod_put_array (struct device *dev , struct gpio_descs *descs );

that's it, that's the whole signature, she's literally that simple 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the GPIO consumer. yeah, that's you, you're the consumer πŸ’…
  • descs β€” the GPIO descriptor array you're disposing of. bye bestie πŸ‘‹

🧚 DESCRIPTION 🧚

so basically this disposes of an array of GPIO descriptors that you got with devm_gpiod_get_array. iconic behavior ⭐

but here's the tea πŸ”₯: normally you will not call this function, because the GPIOs get disposed of by the resource management code. the resource management code is the main character here, and honestly? it's got it handled. periodt πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

like, go read all of them, iykyk 🌈


real talk bestie: if you're reaching for this one manually, double-check that the resource management code isn't already about to do it for you πŸ™ˆ

mwah πŸ’‹ that's the whole page! it lives in ./drivers/gpio, it's dated October 2026, and this edition was served up by the Kernel API Manual β€” catch you in the next one, bestie πŸ’œπŸŽ€πŸŒΈ

πŸ“¦ where this page comes from