octeon_i2c_reg_read(9)
π octeon_i2c_reg_read(9) π
okay so bestie, we're in the Kernel API Manual today and this little function is genuinely iconic β it's octeon_i2c_reg_read, and it reads the lower bits of an I2C core register. that's it. that's the whole vibe. π
β¨ NAME β¨
octeon_i2c_reg_read β reads the lower bits of an I2C core register, no cap
πΈ SYNOPSIS πΈ
int octeon_i2c_reg_read (struct octeon_i2c *i2c , u64 eop_reg , int
*error );
literally just three args and it returns an int, we love a simple signature π«Ά
π¦ ARGUMENTS π¦
i2cβ thestruct octeon_i2c, aka the main character of this whole operation πeop_regβ the register selector, like your little dropdown menu of which register we're peeking at π₯errorβ undescribed π the manpage literally gives us nothing here, so we're not gonna invent lore. it's giving mystery. it's giving "the docs said no comment."
β DESCRIPTION β
so what does it actually do? it returns the data. periodt. π
and here's the tea on the plumbing, bestie: the I2C core registers are accessed indirectly via the SW_TWSI CSR. so you don't just grab them directly β there's a whole middleman situation going on, iykyk. π§
π SEE ALSO π
- the kernel file
./drivers/i2c/busses/i2c-octeon-core.hβ go read the source, it's right there π octeon_i2c_reg_write(9)octeon_i2c_read_int(9)octeon_i2c_write_int(9)octeon_i2c_is_otx2(9)
and that's the whole page, bestie!! π this one lives over in ./drivers/i2c/busses and it's dated October 2026 β so yeah, mark your calendar, screenshot it, send it to the group chat, slay πβ¨
π¦ 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