spmi_ext_register_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spmi_ext_register_read β€” extended register read, bestie ✨

okay so this one is from the Kernel API Manual (that's the manual name, iykyk) and it's literally the extended register read function. super niche, super useful, we love her πŸ’–


✨ SYNOPSIS ✨

int spmi_ext_register_read (struct spmi_device *sdev , u8 addr , u8 *buf
, size_t len );

like… it takes four things and gives you back an int. that's the whole vibe check 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • sdev β€” your SPMI device. the main character of this whole operation πŸ‘‘
  • addr β€” the slave register address, and it's an 8-bit address just so we're clear πŸ’…
  • buf β€” the buffer that gets populated with data from the Slave. she gets filled up, that's her job πŸ“
  • len β€” how many bytes you wanna read, up to 16 bytes. not 17. do not come at her with 17 πŸ™ˆ

🌸 DESCRIPTION 🌸

Reads up to 16 bytes of data from the extended register space on a Slave device.

that's it, that's the whole thing. no cap. up to 16 bytes, from the extended register space, on a Slave device. slay ✨


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/spmi/spmi.c β€” go read it, it's giving source material πŸ’œ

like… look at that whole friend group. iconic. every single one of them. πŸ”₯


ngl bestie, if you only remember one thing: 16 bytes max. that's the lore πŸ’€

okay that's the page!! this one lives in ./drivers/spmi, dated October 2026, and it's spmi_ext_register_read(9) all day every day. mwah πŸ’‹ 🌈 ⭐

πŸ“¦ where this page comes from