spmi_ext_register_write(9)
β¨ 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 π
spmi_device_add(9)spmi_device_remove(9)spmi_register_read(9)spmi_ext_register_read(9)spmi_ext_register_readl(9)spmi_register_write(9)spmi_register_zero_write(9)spmi_ext_register_writel(9)spmi_command_reset(9)spmi_command_sleep(9)spmi_command_wakeup(9)spmi_command_shutdown(9)spmi_find_device_by_of_node(9)spmi_device_alloc(9)spmi_controller_alloc(9)spmi_controller_add(9)spmi_controller_remove(9)__spmi_driver_register(9)
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
- 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