acpi_gpio_count(9)
π 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 π¦
- Kernel file
./drivers/gpio/gpiolib-acpi-core.c struct acpi_gpio_event(9)struct acpi_gpio_info(9)acpi_get_gpiod(9)acpi_gpio_get_io_resource(9)acpi_gpiochip_request_interrupts(9)acpi_gpiochip_free_interrupts(9)acpi_get_gpiod_by_index(9)acpi_get_gpiod_from_data(9)acpi_dev_gpio_irq_wake_get_by(9)
source/version vibe: ./drivers/gpio Β· date: October 2026 Β· acpi_gpio_count(9) β byeee bestie, go count those GPIOs πβ¨π«Ά
π¦ 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