spmi_controller_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spmi_controller_remove(9) β€” the Kernel API Manual, bestie edition

okay so this page is literally from the Kernel API Manual, and it's about yeeting an SPMI controller out of existence. sit down, grab a strawberry πŸ“, we're gonna get through this together.


✨ NAME ✨

spmi_controller_remove β€” remove an SPMI controller. that's it. that's the whole vibe. it takes the controller and it's like "bye bestie πŸ‘‹".


πŸ¦‹ SYNOPSIS πŸ¦‹

void spmi_controller_remove (struct spmi_controller *ctrl );

yep, that's the whole signature β€” void return, one pointer arg, no surprises. copy it exactly, don't be quirky with it πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • ctrl β€” the controller to remove. that's the one getting the goodbye speech. 🫢

🌸 DESCRIPTION 🌸

so here's the tea: this function removes a SPMI controller. periodt. 🎯

but listen β€” the important bit, the part where you gotta pay attention, is that the caller is responsible for calling spmi_controller_put to discard the allocated controller. like, this function does its thing, and then you have to do yours. don't leave that controller just floating around, that's not the move 😭 the put is how the allocated controller actually gets discarded, and that's on you, not on spmi_controller_remove. iykyk.

⚠️ real talk: if you skip the spmi_controller_put, you're the problem. the page says the caller is responsible, and the caller is... you. love that for you πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group shows up here, plus the source file for good measure:

Kernel file ./drivers/spmi/spmi.c:

go read them, they're all iconic in their own way 🌈


🧚 sign-off 🧚

this lil page lives in ./drivers/spmi and it's dated October 2026 β€” so yeah, future girlboss energy. and it's served up fresh from the Kernel API Manual, no cap. mwah πŸ’‹βœ¨

slay, go remove that controller (and don't forget the put) πŸŽ€

πŸ“¦ where this page comes from