i3cdev_to_dev(9)
π i3cdev_to_dev(9) β the kernel API manual, bestie edition π
Okay so welcome to i3cdev_to_dev(9), literally the glow-up page for one tiny function that hands you the struct device hiding inside your I3C device. She's short, she's sweet, she's iconic. Let's get into it β¨
πΈ NAME πΈ
i3cdev_to_dev β returns the device embedded in @i3cdev. That's it. That's the whole job. No cap, she does one thing and she does it slayfully π
β¨ SYNOPSIS β¨
struct device * i3cdev_to_dev (struct i3c_device *i3cdev );
Look at her. One argument, one pointer out. Main character energy fr fr π¦
π ARGUMENTS π
i3cdevβ an I3C device. Yep, that's the one you're feeding in. Give her yourstruct i3c_device *and she'll do the rest π«Ά
π RETURN π
a pointer to a device object. That's the struct device *, bestie β the embedded device that lives inside your i3cdev. Take it, use it, love it π
π¦ SEE ALSO π¦
Sibling functions, the whole friend group, all of them linked from the kernel file ./drivers/i3c/device.c:
i3c_device_do_xfers(9)i3c_device_do_setdasa(9)i3c_device_get_info(9)i3c_device_disable_ibi(9)i3c_device_enable_ibi(9)i3c_device_request_ibi(9)i3c_device_free_ibi(9)i3c_device_match_id(9)i3c_device_get_supported_xfer_mode(9)i3c_driver_register_with_owner(9)i3c_driver_unregister(9)
iykyk π go read them, they're all serving π
lowkey a heads-up: every single one of those (9) references is exactly as written, so don't go renaming anything, bestie π
And that's a wrap, bestie! π This lil' page lives in ./drivers/i3c, and it's dated October 2026 β so when you see that timestamp, you know exactly which era of the kernel manual you're reading. Periodt. πβ¨
π¦ 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