xgpio_dir_out(9)
β¨ xgpio_dir_out β¨
okay so bestie, welcome to the Kernel API Manual entry for xgpio_dir_out(9) β this is the glow-up function that tells a GPIO signal "you're an output now, diva π
" and writes a value to it. it's giving very main character energy in gpio-xilinx.c, iykyk π¦
πΈ NAME πΈ
xgpio_dir_out β sets the direction of the specified GPIO signal as output. that's it, that's the whole vibe β¨
π SYNOPSIS π
int xgpio_dir_out (struct gpio_chip *gc , unsigned int gpio , int val );
π ARGUMENTS π
gcβ pointer to thegpio_chipdevice structure. like, the whole chip's little passport π«Άgpioβ the GPIO signal number. which specific lil signal we're talking to rn π₯valβ the value to be written to the specified signal. the actual tea being delivered β
π DESCRIPTION π
this function sets the direction of the specified GPIO signal as output. literally just flips it to output mode, no cap, that's the entire assignment π β¨
β RETURN β
ok so the vibe check here is: if all GPIO signals of the GPIO chip are configured as input, it returns an error π. otherwise? it returns 0 and we celebrate π
π¦ SEE ALSO π¦
- kernel file
./drivers/gpio/gpio-xilinx.candstruct xgpio_instance(9)β the source material, the blueprint, the origin story π xgpio_get(9)xgpio_set(9)xgpio_set_multiple(9)xgpio_dir_in(9)xgpio_save_regs(9)xgpio_remove(9)xgpio_irq_ack(9)xgpio_irq_mask(9)xgpio_irq_unmask(9)xgpio_set_irq_type(9)xgpio_irqhandler(9)xgpio_probe(9)
and that's the page bestie, periodt π this icon lives over in the ./drivers/gpio directory and was blessed onto the world in October 2026 πΈ go forth and configure your signals responsibly π§β¨
π¦ 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