zynq_gpio_dir_out(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ zynq_gpio_dir_out(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’… this one's called zynq_gpio_dir_out and it's honestly so straightforward it's giving "short and sweet main character energy".


πŸŽ€ NAME πŸŽ€

zynq_gpio_dir_out β€” sets the direction of the specified GPIO pin as output. that's it, that's the vibe. ✨


🌸 SYNOPSIS 🌸

int zynq_gpio_dir_out (struct gpio_chip *chip , unsigned int pin , int state );

three args, one int coming back atcha. no cap. πŸ¦‹


πŸ’– ARGUMENTS πŸ’–

  • chip β€” the gpio_chip instance we're working on. like, the whole chip you're poking at. πŸ”₯
  • pin β€” the gpio pin number within the device. gotta know which one, obviously. πŸ“
  • state β€” the value that's gonna get written to the specified pin. literally the value, bestie. ⭐

🧚 DESCRIPTION 🧚

so here's the tea β˜• β€” this function sets the direction of the specified GPIO pin as output. then it configures the Output Enable register for that pin, and finally it calls zynq_gpio_set to set the state of the pin to whatever value you passed in. three little steps, one slay. πŸ’…

like… it does exactly what it says on the tin. iconic behaviour honestly. πŸ‘‘


🌈 RETURN 🌈

0 always. every single time. zero. nada. it's not giving suspense, and honestly? we respect the consistency. 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

go look at the kernel file ./drivers/gpio/gpio-zynq.c for the full lore, plus these icons:


aaaand that's the whole page, bestie πŸ’œ this cutie lives in ./drivers/gpio and the version is dated October 2026 β€” catch you on the next manpage, mwah πŸŽ€βœ¨πŸ˜­

πŸ“¦ where this page comes from