gpiochip_fwd...get_multiple(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ gpiochip_fwd...get_multiple(9) ✨

okay so bestie, this is a page straight out of the Kernel API Manual and it's literally about gpiochip_fwd_gpio_get_multiple β€” like the function that grabs values for multiple GPIO forwarder lines at once. no cap, it's giving efficiency queen energy πŸ‘‘πŸ’…


🌸 NAME 🌸

gpiochip_fwd_gpio_get_multiple β€” Get values for multiple GPIO forwarder lines πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

int gpiochip_fwd_gpio_get_multiple (struct gpiochip_fwd *fwd , unsigned
long *mask , unsigned long *bits );

literally that's the whole signature, keep it exactly like that bestie, don't touch it πŸ’–


πŸ’œ ARGUMENTS πŸ’œ

  • fwd β€” the GPIO forwarder itself. that's your main character right there 🫢
  • mask β€” a bit mask array, one bit per line, and BITS_PER_LONG bits per word define which lines are gonna get read. so this is the "who's invited to the party" list πŸ‘‘
  • bits β€” a bit value array, one bit per line, with BITS_PER_LONG bits per word, and it will contain the read values for the lines that mask specified. so this is where the actual answers land πŸ’…βœ¨

⭐ RETURN ⭐

0 on success, or a negative errno on failure. slay when it's zero, 😭 when it's negative.


🌈 SEE ALSO 🌈

Kernel file ./drivers/gpio/gpio-aggregator.c β€” yes, go look at it, iykyk πŸ”₯

and the whole friend group:

like, the whole squad is linked, periodt πŸ’€πŸ’–


and that's the page bestie πŸ§šβ€β™€οΈ this one lives in ./drivers/gpio and it's dated October 2026 β€” iconic, timestamped, and officially signed off by the kernel girlies πŸŒΈπŸ«ΆπŸ’œ

πŸ“¦ where this page comes from