ata_scsi_offline_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ata_scsi_offline_dev(9) πŸ’…

okay bestie, this page is from the Kernel API Manual, and we're talking about ata_scsi_offline_dev. no cap, it's a tiny function with a very specific job. ✨


🌸 NAME 🌸

ata_scsi_offline_dev β€” offline attached SCSI device

✨ SYNOPSIS ✨

bool ata_scsi_offline_dev (struct ata_device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the ATA device you're doing the offline thing for: specifically, the ATA device to offline the attached SCSI device for. 🫢

🧚 DESCRIPTION 🧚

so this function gets called from ata_eh_detach_dev, and her whole main-character job is taking the SCSI device attached to dev offline. that's it, that's the task. πŸ’…

she is called with the host lock held, and that host lock is the thing protecting dev->sdev against clearing. iykyk. πŸ”’

LOCKING: spin_lock_irqsave(host lock)

πŸ”₯ RETURN πŸ”₯

  • true β€” if the attached SCSI device exists
  • false</false> β€” otherwise

🌈 SEE ALSO 🌈

the kernel file is right here, bestie: ./drivers/ata/libata-scsi.c

and here's the whole squad of related pages β€” every single one, no skipping:


mwah πŸ’‹ this lil page came from the source ./drivers/ata, dated October 2026, and it's all ata_scsi_offline_dev(9). periodt. πŸŽ€

πŸ“¦ where this page comes from