ENUM I3C_ERROR_CODE(9)
π¦ enum i3c_error_code(9) β the Kernel API Manual, bestie edition
okay so this is enum i3c_error_code(9) from the Kernel API Manual and honestly? it's a tiny one and it ate. it's literally just the I3C error codes, and if you've ever gotten a vague -EIO back from an I3C transfer and been like "π what does that even mean", this is the page for you. let's go π
β¨ NAME β¨
enum i3c_error_code β I3C error codes, that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
enum i3c_error_code {
I3C_ERROR_UNKNOWN ,
I3C_ERROR_M0 ,
I3C_ERROR_M1 ,
I3C_ERROR_M2
};
that's the whole enum. four little guys. no cap. π«Ά
π Constants π
I3C_ERROR_UNKNOWNβ unknown error, and usually that means the error isn't even I3C related π so like, wrong department bestieI3C_ERROR_M0β M0 errorI3C_ERROR_M1β M1 errorI3C_ERROR_M2β M2 error
π₯ Description π₯
these are the standard error codes as defined by the I3C specification β¨ iconic of it.
so here's the tea: when -EIO is returned by the i3c_device_do_i3c_xfers or i3c_device_send_hdr_cmds one can check the error code in struct_i3c_xfer.err or struct i3c_hdr_cmd.err to get a better idea of what went wrong π
ok so lowkey the move is: don't just stare at-EIOlike π β go look in that.errfield, it's giving you actual answers. main character debugging energy fr fr.
π SEE ALSO π
Kernel file ./include/linux/i3c/device.h plus the whole friend group π
enum i3c_xfer_mode(9)struct i3c_xfer(9)enum i3c_dcr(9)struct i3c_device_info(9)struct i3c_driver(9)dev_to_i3cdev(9)module_i3c_driver(9)i3c_i2c_driver_register(9)i3c_i2c_driver_unregister(9)module_i3c_i2c_driver(9)struct i3c_ibi_setup(9)
go read them, iykyk πβ¨
aaaand that's the page!! π source/version: ./include/linux/i3c, dated October 2026 β mwah, bye bestie, go slay those I3C transfers π
ππ
π¦ 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