ahci_platform_shutdown(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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