pch_i2c_writebytes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pch_i2c_writebytes πŸ’…

okay so bestie, welcome to the pch_i2c_writebytes(9) page from the Kernel API Manual β€” yes we're doing kernel-land today, and honestly? it's giving main character energy. this one's a function that literally writes data to the I2C bus in normal mode. that's it. that's the vibe. πŸ¦‹


✨ NAME ✨

pch_i2c_writebytes β€” write data to I2C bus in normal mode 🌸

no cap, that's the whole name section. short, sweet, iconic.


πŸŽ€ SYNOPSIS πŸŽ€

s32 pch_i2c_writebytes (struct i2c_adapter *i2c_adap , struct i2c_msg
*msgs , u32 last , u32 first );

literally just look at it. four args. one s32 coming back at you. periodt. ✨


🌈 ARGUMENTS 🌈

okay so here's where we actually pay attention, bestie β€” every single one of these matters:

  • i2c_adap β€” a pointer to the struct i2c_adapter. like, the actual adapter vibe check. you're handing over the I2C adapter here. πŸ’–
  • msgs β€” a pointer to the i2c message structure. yep, singular-ish looking name but it's the message structure pointer, don't @ me.
  • last β€” specifies whether this is the last message or not. and here's the tea: in the case of compound mode it will be 1 for last message, otherwise 0. so it's a little flag, basically. 🚩
  • first β€” specifies whether this is the first message or not. 1 for first message, otherwise 0. yep, same energy as last but for the beginning. symmetry slay. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

bestie, the cross-reference list is LONG and I respect it deeply. go read these too, iykyk:

like, that's an entire friend group right there. found family, fr fr. 🫢


and that's the whole page, bestie β€” no crumbs left behind. πŸ’…

signing off from ./drivers/i2c/busses, dated October 2026 πŸŽ€ β€” thanks for reading, mwah, go write some bytes to that bus βœ¨πŸ’–πŸ”₯

πŸ“¦ where this page comes from