spmi_ext_register_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ spmi_ext_register_write(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a lil function called spmi_ext_register_write and honestly? it's giving "small but mighty." let's get into it 🫢


🌸 NAME 🌸

spmi_ext_register_write β€” extended register write. that's it, that's the name, no cap ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸŽ€ ARGUMENTS πŸŽ€

  • sdev β€” your SPMI device πŸ’… like, the actual device you're talking to, bestie.
  • addr β€” the slave register address, and heads up, it's an 8-bit address πŸ“ keep it smol.
  • buf β€” the buffer holding the data you're transferring over to the Slave. this is the payload, the main character energy 🌈
  • len β€” the requested number of bytes to read, and it goes up to 16 bytes πŸ”₯ don't push it past that, okay? 😭

πŸ‘‘ DESCRIPTION πŸ‘‘

so what does it do fr fr? it writes up to 16 bytes of data into the extended register space of a Slave device. that's the whole vibe. sixteen bytes max, extended register space, Slave device β€” slay πŸ’œ


🌟 SEE ALSO 🌟

kernel file ./drivers/spmi/spmi.c β€” and honestly the whole friend group is here, go say hi πŸ‘‹


ngl bestie, if you only remember one thing: 16 bytes max, extended register space, 8-bit address. that's the tea β˜•πŸ’€

and that's the page!! this lil love letter lives over in ./drivers/spmi and it's dated October 2026 πŸ—“οΈβœ¨ mwah, go write some registers, icon πŸŽ€πŸ’–

πŸ“¦ where this page comes from