octeon_i2c_write(9)
β¨ octeon_i2c_write(9) β¨
okay so bestie, this one lives in the Kernel API Manual β it's a kernel function, so get comfy, we're in driver land now π«Ά
πΈ NAME πΈ
octeon_i2c_write β send data to the bus via low-level controller π
like. literally just yeeting your bytes out onto the I2C bus at the lowest level. no cap.
π¦ SYNOPSIS π¦
int octeon_i2c_write (struct octeon_i2c *i2c , int target , const u8
*data , int length );
yes she takes four args and returns an int, we love a consistent signature π
π ARGUMENTS π
i2cβ Thestruct octeon_i2cπ the controller struct itself, the main character of this whole operationtargetβ Target address π― like, who are we talking to on the busdataβ Pointer to the data to be sent β¨ aconst u8 *, so bestie, you are not touching these byteslengthβ Length of the data π how many bytes are we actually sending
π DESCRIPTION π
okay so here's the vibe: the address is sent over the bus, then the data. that's it. that's the whole bit π¦
address first, then the payload. iconic order, no notes.
β RETURN β
0 on success, otherwise a negative errno π
so like, check it. zero means slay, negative means something went sideways.
π SEE ALSO π
Kernel file ./drivers/i2c/busses/i2c-octeon-core.c β and her besties:
octeon_i2c_wait(9)octeon_i2c_hlc_wait(9)octeon_i2c_start(9)octeon_i2c_read(9)octeon_i2c_hlc_block_comp_read(9)octeon_i2c_hlc_block_comp_write(9)octeon_i2c_xfer(9)
iykyk, the whole octeon i2c squad is right there in ./drivers/i2c/busses β go say hi π
that's the whole page, bestie!! this one's straight out of the kernel source tree over at ./drivers/i2c/busses, dated October 2026 β mwah, go write some bytes ππ
π¦ 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