i2c_acpi_client_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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


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