cdns_i2c_master_xfer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cdns_i2c_master_xfer(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so picture this: it's giving kernel API manual energy, and today's main character is cdns_i2c_master_xfer. yes we're in the I2C cinematic universe. no cap.


✨ NAME ✨

cdns_i2c_master_xfer β€” literally the main i2c transfer function. the whole vibe. the moment. 🌟


πŸ¦‹ SYNOPSIS πŸ¦‹

int cdns_i2c_master_xfer (struct i2c_adapter *adap , struct i2c_msg
*msgs , int num );

like… three args, one int coming back at you. that's the whole incantation, slay. πŸ”₯


🌸 ARGUMENTS 🌸

  • adap β€” a pointer to the i2c adapter driver instance. that's the driver baddie itself, okurrr 🫢
  • msgs β€” a pointer to the i2c message structure. all the message lore lives here πŸ’Œ
  • num β€” the number of messages to transfer. gotta tell it how many, bestie, it's not a mind reader 😭

πŸ’œ DESCRIPTION πŸ’œ

Initiates the send/recv activity based on the transfer message received. that's it, that's the tea β€” you hand it the message, it kicks off the send/recv situation. no ✨extra✨ behaviour, don't go making stuff up now. 🧚


πŸŽ€ RETURN πŸŽ€

It hits you back with the number of msgs processed on success β€” and a negative error otherwise. so if the number's negative, that's your villain-origin moment, go check it. πŸ’€


🌈 SEE ALSO 🌈

the whole friend group, honestly. here's the squad:

Kernel file ./drivers/i2c/busses/i2c-cadence.c and all its little siblings:

periodt. read them all, iykyk πŸ‘‘


fr fr this is the master xfer β€” if you wanted the atomic one, that's cdns_i2c_master_xfer_atomic(9) right up there. don't mix them up, bestie πŸ™ˆ

and that's a wrap on cdns_i2c_master_xfer(9) from the Kernel API Manual πŸ’– shipped out of ./drivers/i2c/busses, dated October 2026 β€” catch you in the next transfer, mwah πŸ“βœ¨

πŸ“¦ where this page comes from