gpiochip_fw...ection_input(9)
πΈ gpiochip_fw...ection_input(9) πΈ
okay so bestie, welcome to the Kernel API Manual β this one's all about gpiochip_fwd_gpio_direction_input, and ngl it's a little niche but it's giving "quietly essential" π
β¨ NAME β¨
gpiochip_fwd_gpio_direction_input β set a GPIO forwarder line direction to input π
Like, you're telling one specific line on the forwarder "hey babe, you're an input now" and it just⦠listens. obsessed.
π¦ SYNOPSIS π¦
int gpiochip_fwd_gpio_direction_input (struct gpiochip_fwd *fwd ,
unsigned int offset );
the way that signature just sits there being all tidy π two args, one int out the front, periodt.
π ARGUMENTS π
fwdβ the GPIO forwarder π«Ά like, the whole forwarder situation you're working with.offsetβ the offset of the line β¨ aka which line we're pointing at. gotta be specific, bestie.
β RETURN β
0on success π slay, it worked- negative errno on failure π not slay, something went sideways β check that errno, iykyk
π SEE ALSO π
Kernel file ./drivers/gpio/gpio-aggregator.c β that's where the magic lives, fr fr π§
and the whole friend group π:
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_output(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)
like, the entire ensemble cast π go read them, they all ate.
lowkey reminder: everything here is straight from the source, no cap β I'm just here to make it cute π
okay that's the whole page bestie, ily, go set some directions to input πΈ
sign-off szn: this one comes from ./drivers/gpio, dated October 2026, and it's filed under gpiochip_fw...ection_input(9) π mwah π
π¦ 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