zynq_gpio_dir_out(9)
β¨ 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β thegpio_chipinstance 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:
struct zynq_gpio(9)struct zynq_platform_data(9)zynq_gpio_is_zynq(9)gpio_data_ro_bug(9)zynq_gpio_get_bank_pin(9)zynq_gpio_get_value(9)zynq_gpio_set_value(9)zynq_gpio_dir_in(9)zynq_gpio_get_direction(9)zynq_gpio_irq_mask(9)zynq_gpio_irq_unmask(9)zynq_gpio_irq_ack(9)zynq_gpio_irq_enable(9)zynq_gpio_set_irq_type(9)zynq_gpio_irqhandler(9)zynq_gpio_probe(9)zynq_gpio_remove(9)
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
- 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