write_i2c_reg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… write_i2c_reg(9) β€” Kernel API Manual πŸ’…

okay so bestie, welcome to write_i2c_reg(9) from the Kernel API Manual. this one is short and sweet: we’re writing to an internal i2c register, and we’re keeping every lil detail. periodt. 🫢✨


πŸ’– NAME πŸ’–

write_i2c_reg β€” writes to an internal i2c register 🌸


✨ SYNOPSIS ✨

int write_i2c_reg (void __iomem *addr , u8 index , u8 data );

πŸŽ€ ARGUMENTS πŸŽ€

  • addr β€” dt3155 mmio base address 🏠
  • index β€” index (internal address) of register to read πŸ‘€
  • data β€” data to be written ✍️

and yes, the index line literally says β€œto read” even though this whole page is about writing β€” I’m not fixing it, bestie, I’m just delivering the facts exactly as they are. 😭


πŸ”₯ RETURN πŸ”₯

returns zero on success or error code πŸ’€ so: success = zero βœ…, error = error code 😭. no cap.


πŸ¦‹ DESCRIPTION πŸ¦‹

This function starts writing the specified (by index) register and busy waits for the process to finish. ⏳ like, it starts the write and then busy waits β€” busy-wait main character energy, fr fr.


🌈 SEE ALSO 🌈

iykyk, go check those out too πŸ’…


mwah πŸ’‹ β€” this page lives under ./drivers/media/pci/dt3155, dated October 2026, and it’s for write_i2c_reg(9). bye bestie, go write that register! πŸŽ€βœ¨

πŸ“¦ where this page comes from