spmi_register_write(9)
π spmi_register_write β register write
ok so bestie, this is spmi_register_write from the Kernel API Manual (section 9, kernel-space lore β¨). It's a tiny little function that does exactly one iconic thing, and honestly? It ate. Let's get into it π«Ά
β¨ SYNOPSIS β¨
int spmi_register_write (struct spmi_device *sdev , u8 addr , u8 data );
that's it. that's the whole vibe. three args, one int back, no cap π
π ARGUMENTS π
sdevβ the SPMI device, aka the main character of this whole operation π¦addrβ the slave register address, and listen, it's a 5-bit address so don't go trying to be cute with it, it's a 5-bit address, periodt.dataβ the buffer holding the data that's gonna be transferred over to the Slave πΈ
π DESCRIPTION π
It writes 1 byte of data to a Slave device register.
one byte. that's the whole plot. not two, not a "little bit more", one singular byte, and it's giving minimalist queen energy π ngl it's lowkey refreshing how unbothered this function is.
π SEE ALSO π
the whole friend group shows up here, so lemme introduce everyone π§
Kernel file ./drivers/spmi/spmi.c, plus:
spmi_device_add(9)spmi_device_remove(9)spmi_register_read(9)spmi_ext_register_read(9)spmi_ext_register_readl(9)spmi_register_zero_write(9)spmi_ext_register_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)
like, the entire SPMI extended family, iykyk ππ₯
ok and before you go β this page lives at ./drivers/spmi and it's dated October 2026. screenshot it, save it, whatever, mwah π bye bestie!! π
β¨π
π¦ 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