gpiochip_fwd...ction_output(9)
β¨ gpiochip_fwd_gpio_direction_output(9) β bestie's guide to the Kernel API Manual β¨
okay so real talk, this page lives in the Kernel API Manual, and it's all about gpiochip_fwd_gpio_direction_output β the lil' function that points a GPIO forwarder line at the output direction. no cap, that's the whole vibe. π¦
π NAME π
gpiochip_fwd_gpio_direction_output β literally sets a GPIO forwarder line direction to output. that's it, that's the function, and she ate. π
πΈ SYNOPSIS πΈ
int gpiochip_fwd_gpio_direction_output (struct gpiochip_fwd *fwd ,
unsigned int offset , int value );
look at her go π three whole params, iconic.
π ARGUMENTS π
fwdβ the GPIO forwarder itself. your main character struct π«Άoffsetβ the offset of the line. which line? this line, bestie β¨valueβ the value to set. yes queen, pick one π₯
β RETURN β
0 on success, or a negative errno on failure. slay when it's 0, and when it's negative? yeah that's a vibe check fail, handle it π
π SEE ALSO π
the kernel file this lives in, for when you wanna go read the source like the academic weapon you are:
Kernel file ./drivers/gpio/gpio-aggregator.c
and the whole friend group of related functions, no one left behind:
gpiochip_fwd_get_gpiochip(9)gpiochip_fwd_get_data(9)gpiochip_fwd_gpio_request(9)gpiochip_fwd_gpio_get_direction(9)gpiochip_fwd_gpio_direction_input(9)gpiochip_fwd_gpio_get(9)gpiochip_fwd_gpio_get_multiple(9)gpiochip_fwd_gpio_set(9)gpiochip_fwd_gpio_set_multiple(9)gpiochip_fwd_gpio_set_config(9)gpiochip_fwd_gpio_to_irq(9)devm_gpiochip_fwd_alloc(9)gpiochip_fwd_desc_add(9)gpiochip_fwd_desc_free(9)gpiochip_fwd_register(9)gpiochip_fwd_create(9)
ngl, if you made it this far you're lowkey a kernel girlie now. go set some directions to output, periodt π
anyway bestie, this page is from ./drivers/gpio, dated October 2026 β stan the kernel docs, they're always serving ππ§ββοΈ
π¦ 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