rmi_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 iykyk
  • addr β€” the address to read from 🎯 literally just tell it where, bestie
  • buf β€” 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 ✨

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