cdns_i2c_func(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cdns_i2c_func β€” from the Kernel API Manual, bestie

okay so real talk, this is a page from the Kernel API Manual and it's about one lil function called cdns_i2c_func. it's not a whole essay, it's literally one job: you hand it an adapter, it tells you what the driver can do. that's it. that's the whole vibe. πŸ¦‹


✨ NAME ✨

cdns_i2c_func β€” returns the supported features of the I2C driver

like, it's giving "capability report." you ask, it answers in bits. no cap. πŸ”₯


🌸 SYNOPSIS 🌸

u32 cdns_i2c_func (struct i2c_adapter *adap );

bestie look at the return type: u32. that's a 32 bit value, which means up to 32 lil feature flags could theoretically live in there. iconic bit-packing behavior honestly. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • adap β€” pointer to the i2c_adapter structure. that's the thing you're asking about. hand it over and it'll do its thing. 🫢

⭐ RETURN ⭐

a 32 bit value, where each bit corresponds to a feature. so like… bit 0 is one thing, bit 1 is another thing, and you check them individually. don't read it as a plain number, read it as a vibe check of features. iykyk. πŸ’«

ngl, the manpage doesn't spell out which bit is which β€” it just says each bit = a feature. so don't go inventing meanings, bestie. πŸ™ˆ

🌈 SEE ALSO 🌈

so many friends in the same neighborhood, all living in the kernel file ./drivers/i2c/busses/i2c-cadence.c πŸ’–


and that's the whole page, bestie!! go forth and read your feature bits πŸ’…βœ¨

sign-off time πŸŽ€ this one lives in ./drivers/i2c/busses, dated October 2026, and the page itself is cdns_i2c_func(9). mwah. πŸ’œ

πŸ“¦ where this page comes from