spmi_controller_alloc(9)
π NAME π
Okay so this is the page for spmi_controller_alloc(9) from the Kernel API Manual β and it does exactly what the name says, bestie: Allocate a new SPMI controller. Slay. β¨
π¦ SYNOPSIS π¦
struct spmi_controller * spmi_controller_alloc (struct device *parent ,
size_t size );
π ARGUMENTS π
parentβ parent device. Thatβs the parent-device vibe youβre handing in. πsizeβ size of private data. Yep, literally the size of the private data. π«Ά
πΈ DESCRIPTION πΈ
Caller responsibility check, bestie: you are responsible for either calling spmi_controller_add to add the newly allocated controller, or calling spmi_controller_put to discard it. No cap. π
And the allocated private data region? You may access it via spmi_controller_get_drvdata. Thatβs the whole access situation. Iconic. π
π SEE ALSO π
Kernel file ./drivers/spmi/spmi.c β plus these cuties:
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_add(9)spmi_controller_remove(9)__spmi_driver_register(9)
okay thatβs the page, bestie π«Ά β it came from the Kernel API Manual, source ./drivers/spmi, dated October 2026. bye π
β¨
π¦ 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