gpiochip_fwd_desc_add(9)
β¨ gpiochip_fwd_desc_add β the "add a GPIO desc to the forwarder" era β¨
okay bestie, welcome to the Kernel API Manual page for gpiochip_fwd_desc_add(9) π
this lil function is literally here to Add a GPIO desc in the forwarder β that's the whole vibe, no cap π¦
πΈ NAME πΈ
gpiochip_fwd_desc_add β Add a GPIO desc in the forwarder π
π SYNOPSIS π
int gpiochip_fwd_desc_add (struct gpiochip_fwd *fwd , struct gpio_desc
*desc , unsigned int offset );
like, that's the whole signature, copy it exactly or the compiler WILL humble you π
π§ ARGUMENTS π§
fwdβ the GPIO forwarder itself β¨ this is the main character, the thing everything's getting added into.descβ the GPIO descriptor you're registering π«Ά the lil guy you're bringing to the party.offsetβ where in the forwarder this GPIO sits π the offset for the GPIO in the forwarder, iykyk.
β RETURN β
0 on success π or a negative errno on failure π that's it, that's the whole mood.
ngl bestie, always check the return value. a negative errno is not a vibe.
π SEE ALSO π
Kernel file ./drivers/gpio/gpio-aggregator.c β go read the source, it ate π₯
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_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_free(9)gpiochip_fwd_register(9)gpiochip_fwd_create(9)
okay that's the page, periodt π«Ά this one's brought to you by the source path ./drivers/gpio and dated October 2026, living under the Kernel API Manual umbrella πΈ now go add some descs bestie, slay ππ
π¦ 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