spmi_controller_add(9)
π spmi_controller_add(9) π
Okay bestie, welcome to the spmi_controller_add(9) page straight out of the Kernel API Manual β¨ this one is short, sweet, and lowkey iconic, so let's get into it π«Ά
πΈ NAME πΈ
spmi_controller_add β add an SPMI controller π
π SYNOPSIS π
int spmi_controller_add (struct spmi_controller *ctrl );
π ARGUMENTS π
ctrlβ the controller that's getting registered, aka the main character of this function call π
π¦ DESCRIPTION π¦
So here's the tea β: this function registers a controller that you already allocated earlier with spmi_controller_alloc, and it hands that controller over to the SPMI core. That's the whole vibe, no cap π―
π SEE ALSO π
Peep the kernel file ./drivers/spmi/spmi.c and these absolute legends:
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_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_remove(9)__spmi_driver_register(9)
That's the whole page, bestie π brought to you by ./drivers/spmi, dated October 2026, and yes it's giving Kernel API Manual energy from start to finish β¨π
π¦ 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