_aw9523_gpio_get_multiple(9)
π _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" iykykstateβ 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
- 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