cyapa_i2c_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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