_aw9523_gpio_get_multiple(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… _aw9523_gpio_get_multiple(9) β€” from the Kernel API Manual, bestie πŸŽ€

Okay so this one lives in the Kernel API Manual, and it's literally a function that grabs the I/O state for a whole entire port at once. Not one pin. The whole port. Main character energy fr fr ✨


πŸ’– NAME πŸ’–

_aw9523_gpio_get_multiple β€” get I/O state for an entire port, all at once, no cap 🫢


🌸 SYNOPSIS 🌸

int _aw9523_gpio_get_multiple(struct aw9523 *awi, u8 regbit, u8 *state, u8 mask);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • awi β€” the controller data, like the whole vibe of the chip you're talking to πŸ’œ
  • regbit β€” the hw pin index, and yes it's used to retrieve the port number, it's giving "look up the address" iykyk
  • state β€” the returned port I/O state, so this is where the answers land when you call it 🌈
  • mask β€” the lines to read values for, so you pick which ones you actually care about πŸ’…

⭐ RETURN ⭐

Zero for success, or a negative number for error. That's it. Zero = slay, negative = 😭


🧚 SEE ALSO 🧚

The kernel file ./drivers/pinctrl/pinctrl-aw9523.c β€” go read it bestie, it ate πŸ‘‘


Lowkey reminder: it returns zero on success and a negative number on error, so check that return value before you start celebrating πŸ™ˆ

And that's the whole page, periodt πŸ’€πŸ’– This one's dated October 2026, sourced from ./drivers/pinctrl, so shoutout to the kernel docs for keeping it iconic βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from