cdns_i2c_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, we're in the Kernel API Manual and the function on the menu is cdns_i2c_probe(9) β€” let's get into it πŸ’…βœ¨

✨ NAME ✨

cdns_i2c_probe β€” literally the platform registration call, no cap 🫢

🌸 SYNOPSIS 🌸

int cdns_i2c_probe (struct platform_device *pdev );

πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” handle to the platform device structure. It's the device paperwork you're handing over, bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function does all the memory allocation and registration for the i2c device. The whole setup arc β€” memory allocation, registration, the works ✨

And yes: the user can modify the address mode to 10 bit address mode using the ioctl call with option I2C_TENBIT. Iconic little toggle behavior, iykyk πŸ’…

πŸ’– RETURN πŸ’–

  • 0 on success, negative error otherwise. Slay when it's 0, and when it's negative? That's a vibe check fail, bestie 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/i2c/busses/i2c-cadence.c β€” and the whole SEE ALSO squad is here, fr fr:


xoxo bestie πŸ’– β€” source is ./drivers/i2c/busses, date stamp is October 2026, and this manual page is cdns_i2c_probe(9). Byeee 🫢✨

πŸ“¦ where this page comes from