i3c_device_do_xfers(9)
π i3c_device_do_xfers β the kernel API manual, bestie edition
Okay so you're in the i3c subsystem and you need to actually talk to one specific device? That's this one. Pull up a chair. π«Ά
β¨ NAME β¨
i3c_device_do_xfers β do I3C transfers directed to a specific device. That's the whole vibe: transfers, one device, no cap.
β¨ SYNOPSIS β¨
int i3c_device_do_xfers (struct i3c_device *dev , struct i3c_xfer *xfers
, int nxfers , enum i3c_xfer_mode mode );
β¨ ARGUMENTS β¨
devβ the device you're doing the transfers with. Your main character, basically. πxfersβ an array of transfers. Yes, an array. Bring friends.nxfersβ how many transfers are in that array. Please be honest about this number. πmodeβ the transfer mode. It's giving options.
β¨ DESCRIPTION β¨
So basically this kicks off one or several private SDR transfers with dev. That's it, that's the function. β¨
Big warning, bestie: this function can sleep, and therefore it cannot be called in atomic context. Like, at all. Not the time or the place. π
β¨ RETURN β¨
0in case of success β slay, you ate. π- a negative error code otherwise (the page says "core" but we all know what it means π« ).
-EAGAIN: the controller lost address arbitration. The Target (that's IBI, HJ or controller role request) win the bus. The client driver needs to resend the5.1.2.2.3. Not me getting sniped mid-transfer π β just resend, you got this.
β¨ SEE ALSO β¨
The kernel file is ./drivers/i3c/device.c, and the whole friend group is here:
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)i3cdev_to_dev(9)i3c_device_match_id(9)i3c_device_get_supported_xfer_mode(9)i3c_driver_register_with_owner(9)i3c_driver_unregister(9)
And that's the whole page, bestie. π¦ It lives in ./drivers/i3c, and this edition is dated October 2026 β so if you're reading it, hi from the future, drink some water, and go do those SDR transfers. 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