rmi_read(9)
πΈ rmi_read(9) β a Kernel API Manual moment π
okay so bestie, welcome to the <pink>rmi_read</pink> page, straight out of the <purple>Kernel API Manual</purple> β¨ this one is genuinely tiny and iconic and it does exactly one (1) thing. no cap.
π NAME π
rmi_read β read a single byte π like literally one. one byte. that's the whole vibe check.
β¨ SYNOPSIS β¨
int rmi_read (struct rmi_device *d , u16 addr , u8 *buf );
that's it, that's the whole function signature π«Ά look at it. so clean. so main character energy.
π¦ ARGUMENTS π¦
so you're passing in three things, and here's what each one is giving:
dβ pointer to an RMI device π this is the device you're reading from, she's the one with the transport protocol iykykaddrβ the address to read from π― literally just tell it where, bestiebufβ the read buffer π the memory that's gonna get the byte dropped into it
π DESCRIPTION π
okay so here's the whole deal π rmi_read reads a single byte of data using the underlying transport protocol, and puts it into the memory that buf points to. that's it. one byte in, one byte out, no drama π
and the return value? it returns 0 on success π₯³ or a negative error code π so like, if you get a negative number back, that's not a slay, that's an error β check it, don't ignore it, fr fr.
ngl bestie, always check that return value. a negative error code is the function telling you something went sideways π
π§ SEE ALSO π§
go read these next, they're all in the kernel file ./drivers/input/rmi4/rmi_bus.h and they're all linked below, no skipping β¨
struct rmi_function(9)struct rmi_function_handler(9)rmi_reset(9)rmi_read_block(9)rmi_write(9)rmi_write_block(9)
like, rmi_read_block(9) is literally her bigger sister β if you need more than one byte, that's where you go π¦
so yeah, that's rmi_read. one byte. three arguments. zero notes. periodt π
this page lives in ./drivers/input/rmi4 and was dated <pink>October 2026</pink>, so likeβ¦ a little time capsule moment π mwah, hope this helped, love u, bye πβ¨π«Ά
π¦ 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