rmi_write_block(9)
π rmi_write_block(9) β from the Kernel API Manual, bestie β¨
okay so picture this: you're deep in the kernel, you've got a whole block of bytes and you need them to go somewhere. that's literally this function. it's in section 9 of the Kernel API Manual and it's lowkey iconic for how much it justβ¦ does its job π«Ά
πΈ NAME πΈ
rmi_write_block β write a block of bytes π
β¨ SYNOPSIS β¨
int rmi_write_block (struct rmi_device *d , u16 addr , const void *buf ,
size_t len );
like, that's the whole signature. four args. no cap. π₯
π ARGUMENTS π
dβ Pointer to an RMI device π« like, which device are we even talking to, bestieaddrβ The start address to write to π the spot where the writing beginsbufβ The write buffer π§Ί your bytes live here, they're ready to travellenβ Length of the write buffer π how many bytes we're sending out into the world
π¦ DESCRIPTION π¦
Writes a block of byte data from buf using the underlaying transport protocol β yeah, the underlaying one, spelling and all, that's how it's written and we respect it π
it returns the amount of bytes written or a negative error code π so like. check that return value, fr fr. positive-ish = good, negative = the vibe check failed π
ngl, if you're staring at a negative number wondering what went wrong, that's your error code talking. it's giving "read the return value" energy π
π SEE ALSO π
- Kernel file
./drivers/input/rmi4/rmi_bus.hβ the header, the source of truth, the main character π struct rmi_function(9)struct rmi_function_handler(9)rmi_reset(9)rmi_read(9)rmi_read_block(9)rmi_write(9)
like, go read the whole friend group, they all hang out together π«Άβ¨
and that's the page!! π
this little gem lives in ./drivers/input/rmi4, dated October 2026 β mwah, see you in the next manpage, bestie ππ§π
π¦ 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