pch_i2c_readbytes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the struct i2c_adapter. yeah, the adapter itself, she's the whole setup 🫢
  • msgs β€” Pointer to i2c_msg structure. 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:


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