xway_stp_dir_out(9)
okay so bestie, welcome to xway_stp_dir_out(9) from the Kernel API Manual β it's the gpio_chip->dir_out hook, and its whole main-character job is setting GPIO direction. β¨
π NAME π
xway_stp_dir_out β gpio_chip->dir_out β set gpio direction. no cap, that's the assignment. π«Ά
πΈ SYNOPSIS πΈ
int xway_stp_dir_out (struct gpio_chip *gc , unsigned gpio , int val );
π ARGUMENTS π
gcβ pointer togpio_chipdevice structure. literally the chip's info card. πgpioβ GPIO signal number. the specific little signal we're talking about. π₯valβ value to be written to specified signal. π
β¨ DESCRIPTION β¨
Same as xway_stp_set, always returns 0. that's it, that's the whole vibe β lowkey simple, highkey iconic. π
π¦ SEE ALSO π¦
Kernel file ./drivers/gpio/gpio-stp-xway.c plus these besties: xway_stp_get(9), xway_stp_set(9), xway_stp_request(9), xway_stp_hw_init(9). go read them, iykyk. π
and that's the page, bestie! source/version stamp: ./drivers/gpio, dated October 2026, filed under xway_stp_dir_out(9). slay and goodbye π
π¦ 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