gpiochip_fwd_gpio_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ gpiochip_fwd_gpio_get πŸ¦‹

okay bestie, welcome to the Kernel API Manual corner of the group chat πŸ’… this page is literally about gpiochip_fwd_gpio_get, and it is here to return a GPIO forwarder line's value. No cap. 🫢


🌸 NAME 🌸

gpiochip_fwd_gpio_get β€” return a GPIO forwarder line's value, periodt. πŸ’–

✨ SYNOPSIS ✨

int gpiochip_fwd_gpio_get (struct gpiochip_fwd *fwd , unsigned int
       offset );

πŸŽ€ ARGUMENTS πŸŽ€

  • fwd β€” the GPIO forwarder, bestie. That's the thing we're working with. πŸ¦‹
  • offset β€” the offset of the line. yep, that's the line's offset. πŸ’…

πŸ‘‘ RETURN πŸ‘‘

It gives you the GPIO's logical value β€” i.e. it's taking the ACTIVE_LOW status into account, so the vibe check is logical β€” or a negative errno on failure. 😭

🌈 SEE ALSO 🌈

Kernel file: ./drivers/gpio/gpio-aggregator.c β€” go read it, iykyk πŸ“–


xoxo, this one is sourced from ./drivers/gpio, dated October 2026, and it's literally gpiochip_fwd_gpio_get(9) πŸ’–πŸ§šπŸ«Ά

πŸ“¦ where this page comes from