i2c_acpi_client_count(9)
π i2c_acpi_client_count(9) β Kernel API Manual π
okay so bestie, this page is all about the i2c_acpi_client_count(9) helper, and it is lowkey iconic for one very specific job: counting I2cSerialBus resources β¨
πΈ NAME πΈ
i2c_acpi_client_count - Count the number of I2cSerialBus resources π
β¨ SYNOPSIS β¨
int i2c_acpi_client_count (struct acpi_device *adev );
π ARGUMENTS π
adevβ ACPI device π«Ά
π¦ RETURN π¦
The number of I2cSerialBus resources in the ACPI-device's resource-list; or a negative error code. so like, either a cute little count or a negative error code, no in-between π
π DESCRIPTION π
Specifically returns -ENOENT when no resources found. that's the tea: no resources found means -ENOENT, periodt π
π SEE ALSO π
Kernel file ./drivers/i2c/i2c-core-acpi.c
i2c_acpi_get_i2c_resource(9)i2c_acpi_get_irq(9)i2c_acpi_register_devices(9)i2c_acpi_find_bus_speed(9)i2c_acpi_new_device_by_fwnode(9)
cute little sign-off bestie: this one came from ./drivers/i2c, dated October 2026, and it's literally i2c_acpi_client_count(9) β slay π
β¨
π¦ 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