gpiochip_fwd...set_multiple(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ 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, and BITS_PER_LONG bits 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, again BITS_PER_LONG bits per word, and this one defines the values that the outputs picked by mask are gonna be set to. so mask says who and bits says 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:


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