swnode_gpio_count(9)
π 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 beNULLfor 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
- 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