swnode_gpio_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, welcome to swnode_gpio_count(9) β€” straight out of the Kernel API Manual β€” and it is literally here to count the GPIOs associated with a device / function. that’s the whole assignment, no cap πŸ’–


✨ SYNOPSIS ✨

int swnode_gpio_count (const struct fwnode_handle *fwnode , const char *con_id );

πŸŽ€ ARGUMENTS πŸŽ€

  • fwnode β€” firmware node of the GPIO consumer, and yes bestie, it can be NULL for system-global GPIOs 🫢
  • con_id β€” the function within the GPIO consumer πŸ’…

πŸ¦‹ RETURN πŸ¦‹

it returns the number of GPIOs associated with a device / function, or -ENOENT if no GPIO has been assigned to the requested function. that’s the vibe check, periodt 😭


🌈 SEE ALSO 🌈

  • Kernel file ./drivers/gpio/gpiolib-swnode.c β€” go peek at the source, bestie, iykyk πŸ‘‘

signed with sparkles from the source/version ./drivers/gpio, dated October 2026 β€” mwah, bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from