gpiochip_fwd...set_multiple(9)
π gpiochip_fwd_gpio_set_multiple β assign values to multiple GPIO forwarder lines π
okay bestie so this one straight out of the Kernel API Manual literally lets you set a whole bunch of forwarder lines at once instead of doing them one by one like some kind of peasant. we love efficiency in this house π«Ά
β¨ SYNOPSIS β¨
int gpiochip_fwd_gpio_set_multiple (struct gpiochip_fwd *fwd , unsigned long *mask , unsigned long *bits );
π ARGUMENTS π
fwdβ the GPIO forwarder itself, the main character in this whole situation π₯maskβ a bit mask array, one bit per output, andBITS_PER_LONGbits per word is what defines which outputs are actually getting changed. like a little guest list for who's allowed in πbitsβ a bit value array, one bit per output, againBITS_PER_LONGbits per word, and this one defines the values that the outputs picked bymaskare gonna be set to. somasksays who andbitssays what π
π RETURN π
0 on success, or a negative errno on failure. that's it, that's the vibe check π
π¦ SEE ALSO π¦
the kernel file, don't lose it:
./drivers/gpio/gpio-aggregator.c
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_direction_input(9)gpiochip_fwd_gpio_get(9)gpiochip_fwd_gpio_get_multiple(9)gpiochip_fwd_gpio_set(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)
okay that's the whole page, you ate that ngl π
β¨ this came from ./drivers/gpio, dated October 2026 β go forth and set those multiple lines, bestie, i'm obsessed ππ¦π
π¦ 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