dev_to_i3cdev(9)
π dev_to_i3cdev
okay so bestie, welcome to the Kernel API Manual page for dev_to_i3cdev β yes it's a kernel function, yes it's short, and yes it's still iconic. this is the one that hands you back the I3C device that's wrapped around a struct device. lowkey a container_of situation but make it fashion β¨
πΈ NAME πΈ
dev_to_i3cdev β returns the I3C device containing @dev
like, you give it a device, it gives you the I3C device it lives inside. that's the whole vibe. no cap π«Ά
π SYNOPSIS π
dev_to_i3cdev (__dev );
that's it. that's the call. she's simple, she's neat, she slays π
π¦ ARGUMENTS π¦
__devβ device object. literally just hand her the device and she'll do the rest π
β RETURN β
a pointer to an I3C device object. that's the whole payoff, bestie β you put in a device, you get back the I3C device, main character energy all around π
π₯ SEE ALSO π₯
so there's a lot of family here, and we're gonna list every single one because nobody gets left out of the group chat π
kernel file ./include/linux/i3c/device.h, plus:
enum i3c_error_code(9)enum i3c_xfer_mode(9)struct i3c_xfer(9)enum i3c_dcr(9)struct i3c_device_info(9)struct i3c_driver(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)
iykyk, the whole I3C crew is here and they all ate π
ngl this one's a tiny page, but tiny β unimportant. go read the rest of the I3C squad when you're done here π§
and that's a wrap, bestie! this absolute gem lives in ./include/linux/i3c, and the manual was dated October 2026 β so yes, dev_to_i3cdev(9), still serving looks into the future πβ¨
π¦ 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