ata_platform_remove_one(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ata_platform_remove_one(9) β€” like, the platform-layer callback for when a device ✨leaves✨

okay so real talk, bestie: this one's a page out of the Kernel API Manual, and it's short but it matters β€” it's the little hook that tells libata "hey girl, that device is gone, wrap it up πŸŽ€".


✨ NAME ✨

ata_platform_remove_one β€” the platform layer callback for device removal 🫢


🌸 SYNOPSIS 🌸

void ata_platform_remove_one (struct platform_device *pdev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pdev β€” the platform device that was removed. yeah, that one. it's gone now πŸ’€

πŸ’– DESCRIPTION πŸ’–

So the platform layer uses this hook to tell libata that a hot-unplug or a module unload event just happened πŸ‘€. In response, it detaches all ports. That's the whole job.

Now, before you panic about cleanup β€” resource release is not your problem here, because it's handled via devres ✨. so clean, so iconic, no manual teardown arc.

LOCKING: inherited from the platform layer β€” and heads up, it may sleep 😴. so don't go calling it from somewhere spicy, iykyk.

🌈 SEE ALSO 🌈

the whole libata extended universe fr fr, plus the kernel file it lives in:


and that's the whole page, bestie, no cap πŸ’œ it lives over in ./drivers/ata, dated October 2026, and it's filed as ata_platform_remove_one(9) β€” go forth and detach those ports πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from