gpiochip_fwd_desc_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ gpiochip_fwd_desc_add β€” the "add a GPIO desc to the forwarder" era ✨

okay bestie, welcome to the Kernel API Manual page for gpiochip_fwd_desc_add(9) πŸ’… this lil function is literally here to Add a GPIO desc in the forwarder β€” that's the whole vibe, no cap πŸ¦‹


🌸 NAME 🌸

gpiochip_fwd_desc_add β€” Add a GPIO desc in the forwarder πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

int gpiochip_fwd_desc_add (struct gpiochip_fwd *fwd , struct gpio_desc
*desc , unsigned int offset );

like, that's the whole signature, copy it exactly or the compiler WILL humble you 😭


🧚 ARGUMENTS 🧚

  • fwd β€” the GPIO forwarder itself ✨ this is the main character, the thing everything's getting added into.
  • desc β€” the GPIO descriptor you're registering 🫢 the lil guy you're bringing to the party.
  • offset β€” where in the forwarder this GPIO sits 🌈 the offset for the GPIO in the forwarder, iykyk.

⭐ RETURN ⭐

0 on success πŸŽ‰ or a negative errno on failure πŸ’€ that's it, that's the whole mood.

ngl bestie, always check the return value. a negative errno is not a vibe.

πŸ’– SEE ALSO πŸ’–

Kernel file ./drivers/gpio/gpio-aggregator.c β€” go read the source, it ate πŸ”₯


okay that's the page, periodt 🫢 this one's brought to you by the source path ./drivers/gpio and dated October 2026, living under the Kernel API Manual umbrella 🌸 now go add some descs bestie, slay πŸ’œπŸŽ€

πŸ“¦ where this page comes from