xgpio_dir_in(9)
π NAME π
xgpio_dir_in β Set the direction of the specified GPIO signal as input.
okay so welcome to the xgpio_dir_in(9) page from the Kernel API Manual, bestie π«Ά this one is short and sweet: itβs all about setting the direction of the specified GPIO signal as input β¨
β¨ SYNOPSIS β¨
the whole signature, no cap:
int xgpio_dir_in (struct gpio_chip *gc , unsigned int gpio );
π ARGUMENTS π
gcβ Pointer to thegpio_chipdevice structure. thatβs the device struct pointer, periodt πgpioβ GPIO signal number. yep, the signalβs number bestie π’
π RETURN π
0β if direction of GPIO signals is set as input; otherwise it returns a negative error value. so0is the slay outcome, negative means something went sideways π
π¦ SEE ALSO π¦
lowkey go peek at these icons too π:
- Kernel file
./drivers/gpio/gpio-xilinx.c struct xgpio_instance(9)xgpio_get(9)xgpio_set(9)xgpio_set_multiple(9)xgpio_dir_out(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)
this pageβs source/version is ./drivers/gpio, and itβs dated October 2026 β mwah, stay iconic πβ¨
π¦ 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