gpiod_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gpiod_put(9) β€” from the Kernel API Manual, bestie

okay so real talk, this one is short but it's load-bearing. Sit down, grab a strawberry πŸ“, we're learning how to let go of a GPIO descriptor.


✨ NAME ✨

gpiod_put β€” dispose of a GPIO descriptor

like, release it, free it, say your goodbyes 🫢


🌸 SYNOPSIS 🌸

void gpiod_put (struct gpio_desc *desc );

yes that's the whole thing. no cap. she's a one-liner πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • desc β€” the GPIO descriptor you're about to dispose of. this is the one you're letting go. bye bestie πŸ‘‹

πŸ¦‹ DESCRIPTION πŸ¦‹

🚨 girl, listen to me. No descriptor can be used after gpiod_put has been called on it.

that's it. that's the whole vibe. once you've called gpiod_put on a desc, that descriptor is done β€” no reads, no writes, no sneaky little calls afterwards. it's giving "blocked, don't text" energy. literally the main character moment where you close the door and do not look back πŸ’€

so like... be SO sure you're finished with it before you call this. because there's no coming back from it. periodt πŸ”₯


🌈 SEE ALSO 🌈

okay this is the part where she really shows off. look at this entire circle of friends β€” these are all (9) friends from Kernel file ./drivers/gpio/gpiolib.c, and honestly? the way the kernel keeps them all connected is iconic ✨


πŸ₯Ί and that's the whole page, bestie. short, sweet, and absolutely not to be messed with.

okay and like, housekeeping before you go β€” this lovely little thing lives under ./drivers/gpio, dated October 2026, and it's straight out of the Kernel API Manual. mwah πŸ’– go free your descriptors responsibly, ily, bye! πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from