ahci_platform_shutdown(9)
π ahci_platform_shutdown(9) β a Kernel API Manual moment
okay bestie, welcome to the ahci_platform_shutdown page from the Kernel API Manual (section 9, kernel-space girlies only) π this is the one that literally just... turns things off. gracefully. on purpose. slay.
β¨ NAME β¨
ahci_platform_shutdown β disable interrupts and stop DMA for host ports π like the function's whole personality is "we're leaving, turn the lights off, don't touch anything on your way out"
πΈ SYNOPSIS πΈ
void ahci_platform_shutdown (struct platform_device *pdev );
that's it. that's the whole vibe. no return value, no drama, void and unbothered π
π¦ ARGUMENTS π¦
pdevβ platform device pointer for the host π«Ά literally just the pointer to the host's platform device, hand it over and let her cook
π DESCRIPTION π
so this function gets called during system shutdown, right? and it performs the minimal deconfiguration required β and bestie, "minimal" is doing heavy lifting there β to make sure an ahci_platform host cannot corrupt or otherwise interfere with a new kernel being started with kexec ππ₯
like imagine the old kernel didn't clean up and the new kernel boots up and the old host is still out here doing DMA into memory that isn't hers anymore. not on her watch. she shuts that down. main character energy, honestly β¨
lowkey important: this is minimal deconfiguration β she's not doing a full teardown, she's doing exactly enough so the next kernel gets a clean slate. respect the restraint π
π SEE ALSO π
the whole ahci_platform family reunion, iykyk:
- Kernel file
./drivers/ata/libahci_platform.cπ (the mothership) ahci_platform_enable_phys(9)ahci_platform_disable_phys(9)ahci_platform_find_clk(9)ahci_platform_enable_clks(9)ahci_platform_disable_clks(9)ahci_platform_deassert_rsts(9)ahci_platform_assert_rsts(9)ahci_platform_enable_regulators(9)ahci_platform_disable_regulators(9)ahci_platform_enable_resources(9)ahci_platform_disable_resources(9)ahci_platform_get_resources(9)ahci_platform_init_host(9)ahci_platform_suspend_host(9)ahci_platform_resume_host(9)ahci_platform_suspend(9)ahci_platform_resume(9)
like a whole friend group of enable/disable pairs, we love a balanced roster π
and that's the page!! no cap, no notes, she ate π this lil gem lives in ./drivers/ata and the docs are dated October 2026 β go off, kernel docs, we'll see you in the next boot cycle π§ββοΈβπ
π¦ 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