i2c_get_device_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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