spmi_command_shutdown(9)
π spmi_command_shutdown β a Kernel API Manual moment (section 9, bestie)
Okay so picture this: it's giving kernel API manual, and the function on the cover is literally spmi_command_shutdown. So iconic. Let me walk you through it π«Ά
β¨ NAME β¨
spmi_command_shutdown β sends the SHUTDOWN command to the specified SPMI device. That's it, that's the whole vibe. Girl is straightforward and we respect her for it π
πΈ SYNOPSIS πΈ
int spmi_command_shutdown (struct spmi_device *sdev );
Yes bestie, she takes exactly one (1) argument and hands you back an int. No cap. π
π¦ ARGUMENTS π¦
sdevβ the SPMI device. Like, the actual device you're talking to. That's your main character right there π
β DESCRIPTION β
So the Shutdown command causes the Slave to enter the SHUTDOWN state. Periodt. That's the entire description and honestly? She said what she said π
No extra lore, no secret twists β the command goes in, the Slave goes into SHUTDOWN state, we all move on with our lives β¨
π SEE ALSO π
Go read the kernel file ./drivers/spmi/spmi.c β it's right there, she's holding it down for the whole subsystem π. And then there's the whole friend group:
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_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, the whole squad showed up for the group photo, and we love that for them πΈπ
Ngl bestie, all of these live under ./drivers/spmi β that's the neighborhood π‘
Mwah π that's the page! This little masterpiece came from the fine folks over at ./drivers/spmi, dated October 2026, and you read it in true spmi_command_shutdown(9) fashion. Slay, go shut something down (the correct, documented way) ππ¦π
π¦ 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