i3cdev_to_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 your struct 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:

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