spmi_controller_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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