ata_scsi_sdev_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, this is ata_scsi_sdev_destroy(9) from the Kernel API Manual, and it's giving β€œSCSI device is about to be destroyed” in the most iconic way. πŸ’…βœ¨

NAME ✨

ata_scsi_sdev_destroy β€” SCSI device is about to be destroyed. 🫢

SYNOPSIS πŸ¦‹

void ata_scsi_sdev_destroy (struct scsi_device *sdev );

ARGUMENTS πŸŽ€

  • sdev β€” SCSI device to be destroyed. πŸ’€

DESCRIPTION πŸ’…

okay so sdev is literally about to be destroyed for hot/warm unplugging. 🫢 If this unplugging was initiated by libata β€” as indicated by dev->sdev being NULL β€” this function doesn't have to do anything. no cap. Otherwise, SCSI layer initiated warm-unplug is in progress, so it clears dev->sdev, schedules the device for ATA detach, and invokes EH. πŸ’…

LOCKING: Defined by SCSI layer. We don't really care. 😌

SEE ALSO 🌈

Kernel file ./drivers/ata/libata-scsi.c is the main character, and here's the whole squad:


and that's the whole page, bestie! 🫢 Source/version energy: ./drivers/ata; date: October 2026; footer name: ata_scsi_sdev_destroy(9). bye, love you! πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from