write_i2c_reg(9)
π
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 π
- Kernel file
./drivers/media/pci/dt3155/dt3155.cπ read_i2c_reg(9)write_i2c_reg_nowait(9)wait_i2c_reg(9)
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
- 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