cyapa_i2c_write(9)
π NAME π
Bestie, say hi to cyapa_i2c_write(9) from the Kernel API Manual β the function whose whole description is literally Execute i2c block data write operation. It's giving tiny-but-important kernel helper, and we're obsessed. π
β¨
β¨ SYNOPSIS β¨
int cyapa_i2c_write (struct cyapa *cyapa , u8 reg , size_t len , const
void *values );
Lowkey just read the signature, it's all right there. π«Ά
πΈ ARGUMENTS πΈ
cyapaβ handle to this driver, aka the main-character handle you gotta pass in πregβ offset of the data to written in the register map; yes, that's the exact lore, don't come for me πlenβ number of bytes to write, so the function knows how much to write, periodt πvaluesβ data to be written, the actual payload bestie π
π DESCRIPTION π
Return negative errno code on error; return zero when success. That's the whole contract, fr fr: negative errno code means error π, zero means success slay β¨. No extra side quests in this description, ngl.
π¦ SEE ALSO π¦
Kernel file ./drivers/input/mouse/cyapa.c β go peek, iykyk π₯
Cute little sign-off: the source/version spot is ./drivers/input/mouse, the date is October 2026, and this manual page is cyapa_i2c_write(9). π«Άπ
π¦ 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