acpi_gpio_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ acpi_gpio_count(9) πŸŽ€

okay so bestie, this is the Kernel API Manual page for acpi_gpio_count(9), and it's giving short king energy. It's literally about counting the GPIOs associated with a firmware node / function, and we're gonna get into it. No cap.

✨ NAME ✨

acpi_gpio_count β€” count the GPIOs associated with a firmware node / function.

πŸ’… SYNOPSIS πŸ’…

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

Two arguments, one int return, and the vibes are immaculate. Periodt.

🌸 ARGUMENTS 🌸

  • fwnode β€” firmware node of the GPIO consumer. That's the firmware-node side of the GPIO consumer, bestie. 🫢
  • con_id β€” function within the GPIO consumer. The function-inside-the-consumer situation, iykyk. πŸ’…

πŸ”₯ RETURN πŸ”₯

The number of GPIOs associated with a firmware node / function or -ENOENT, if no GPIO has been assigned to the requested function.

So yeah: you get the number of GPIOs associated with a firmware node / function, or -ENOENT if no GPIO has been assigned to the requested function. That's the whole return vibe β€” fr fr. 😭

πŸ¦‹ SEE ALSO πŸ¦‹


source/version vibe: ./drivers/gpio Β· date: October 2026 Β· acpi_gpio_count(9) β€” byeee bestie, go count those GPIOs πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from