pch_i2c_readbytes(9)
π pch_i2c_readbytes β like, the I2C read era
okay so bestie, welcome to pch_i2c_readbytes(9) from the Kernel API Manual β¨ this one's literally the function that reads data off the I2C bus in normal mode. no cap, that's the whole vibe. π¦
πΈ NAME πΈ
pch_i2c_readbytes β read data from I2C bus in normal mode. that's it, that's the function, and she's iconic for it π
β¨ SYNOPSIS β¨
s32 pch_i2c_readbytes (struct i2c_adapter *i2c_adap , struct i2c_msg
*msgs , u32 last , u32 first );
like, she takes four things and gives you back an s32. main character energy fr fr π
π ARGUMENTS π
i2c_adapβ Pointer to thestruct i2c_adapter. yeah, the adapter itself, she's the whole setup π«Άmsgsβ Pointer toi2c_msgstructure. the message situation, lowkey important πlastβ specifies whether last message or not. so, is this the last one? that's the question bestie πΈfirstβ specifies whether first message or not. and is this the first one? enquiring minds want to know π
π₯ SEE ALSO π₯
the whole friend group, periodt β Kernel file ./drivers/i2c/busses/i2c-eg20t.c, plus:
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_writebytes(9)pch_i2c_sendack(9)pch_i2c_sendnack(9)pch_i2c_restart(9)pch_i2c_cb(9)pch_i2c_handler(9)pch_i2c_xfer(9)pch_i2c_func(9)pch_i2c_disbl_int(9)
ngl,pch_i2c_writebytes(9)is her sibling and they're both slaying in./drivers/i2c/bussesβ go say hi π
and that's the page!! mwah π this little number lives in ./drivers/i2c/busses, dated October 2026, and answers to the name pch_i2c_readbytes(9) β go read some bytes bestie, you got this πβπ
π¦ 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