i2c_get_device_id(9)
π i2c_get_device_id(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a lil function called i2c_get_device_id, and honestly? it's giving "detective era." it goes and finds out who a device actually is. β¨
πΈ NAME πΈ
i2c_get_device_id β get manufacturer, part id and die revision of a device π΅οΈββοΈ
like, the whole identity check. no cap.
π¦ SYNOPSIS π¦
int i2c_get_device_id (const struct i2c_client *client , struct i2c_device_identity *id );
π ARGUMENTS π
clientβ the device you wanna query π literally the one you're asking "so... who are you?"idβ the queried information π this is where the answer goes. the receipts, if you will.
β¨ DESCRIPTION β¨
Returns negative errno on error, zero on success.
that's it, that's the whole vibe. negative errno = it did not slay π, zero = success, we ate π. periodt.
π₯ SEE ALSO π₯
Kernel file ./drivers/i2c/i2c-core-base.c β and honestly the whole friend group showed up, so here's the full guest list:
i2c_verify_client(9), i2c_adapter_lock_bus(9), i2c_adapter_trylock_bus(9), i2c_adapter_unlock_bus(9), i2c_new_client_device(9), i2c_unregister_device(9), i2c_find_device_by_fwnode(9), i2c_new_dummy_device(9), devm_i2c_new_dummy_device(9), i2c_new_ancillary_device(9), i2c_verify_adapter(9), i2c_handle_smbus_host_notify(9), i2c_add_adapter(9), i2c_add_numbered_adapter(9), i2c_del_adapter(9), devm_i2c_add_adapter(9), i2c_find_adapter_by_fwnode(9), i2c_get_adapter_by_fwnode(9), i2c_parse_fw_timings(9), i2c_del_driver(9), __i2c_transfer(9), i2c_transfer(9), i2c_transfer_buffer_flags(9), i2c_client_get_device_id(9), i2c_get_dma_safe_msg_buf(9), i2c_put_dma_safe_msg_buf(9)
ngl bestie, that's a lot of cross-references. main character energy for a whole subsystem tbh π
π that's the page!! π this lil icon lives in ./drivers/i2c, it's dated October 2026, and it answers to the name i2c_get_device_id(9) β iykyk π«Άπ
π¦ 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