slim_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… slim_read(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” today's main character is slim_read, and it is literally here to read a SLIMbus value element. tiny function, very important vibe. ✨


🌸 NAME 🌸

slim_read β€” Read SLIMbus value element πŸ’–

✨ SYNOPSIS ✨

int slim_read (struct slim_device *sdev , u32 addr , size_t count , u8
       *val );

πŸŽ€ ARGUMENTS πŸŽ€

  • sdev β€” client handle. like, the handle for your client, bestie 🫢
  • addr β€” address of value element to read. it's giving "where are we reading from" energy.
  • count β€” number of bytes to read. Maximum bytes allowed are 16. yes, sixteen is the ceiling, do not push it 😭
  • val β€” will return what the value element value was. the output goes here, periodt πŸ’…

πŸ”₯ RETURN πŸ”₯

  • -EINVAL for Invalid parameters. bad params = no ma'am πŸ™ˆ
  • -ETIMEDOUT If transmission of this message timed out (e.g. due to bus lines not being clocked or driven by controller). like the message got left on read, literally πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/slimbus/messaging.c β€” the whole friend group is:


mwah πŸ’‹ β€” source: ./drivers/slimbus; date: October 2026; page: slim_read(9). bye bestie 🫢

πŸ“¦ where this page comes from