spmi_ext_register_read(9)
π 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 π
spmi_device_add(9)spmi_device_remove(9)spmi_register_read(9)spmi_ext_register_readl(9)spmi_register_write(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β¦ 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
- 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