pch_i2c_writebytes(9)
π 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 thestruct i2c_adapter. like, the actual adapter vibe check. you're handing over the I2C adapter here. πmsgsβ a pointer to thei2c 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 be1for last message, otherwise0. so it's a little flag, basically. π©firstβ specifies whether this is the first message or not.1for first message, otherwise0. yep, same energy aslastbut for the beginning. symmetry slay. π
π¦ SEE ALSO π¦
bestie, the cross-reference list is LONG and I respect it deeply. go read these too, iykyk:
- Kernel file
./drivers/i2c/busses/i2c-eg20t.c struct i2c_algo_pch_data(9)struct adapter_info(9)pch_i2c_init(9)pch_i2c_wait_for_bus_idle(9)pch_i2c_start(9)pch_i2c_stop(9)pch_i2c_repstart(9)pch_i2c_sendack(9)pch_i2c_sendnack(9)pch_i2c_restart(9)pch_i2c_readbytes(9)pch_i2c_cb(9)pch_i2c_handler(9)pch_i2c_xfer(9)pch_i2c_func(9)pch_i2c_disbl_int(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms