xgpio_dir_out(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the gpio_chip device 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 πŸ¦‹


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