xgpio_dir_in(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the gpio_chip device 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. so 0 is the slay outcome, negative means something went sideways 😭

πŸ¦‹ SEE ALSO πŸ¦‹

lowkey go peek at these icons too πŸ‘€:

this page’s source/version is ./drivers/gpio, and it’s dated October 2026 β€” mwah, stay iconic πŸ’‹βœ¨

πŸ“¦ where this page comes from