ata_scsi_start_stop_xlat(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« ata_scsi_start_stop_xlat πŸ’«

okay so this is a page straight outta the Kernel API Manual β€” it's ata_scsi_start_stop_xlat(9), and bestie, it's literally the little translator that takes a SCSI START STOP UNIT command and turns it into something ATA can vibe with. let's get into it πŸŽ€


✨ NAME ✨

ata_scsi_start_stop_xlat β€” the translator for the SCSI START STOP UNIT command. she speaks both languages, it's giving bilingual icon πŸ’…


🌸 SYNOPSIS 🌸

unsigned int ata_scsi_start_stop_xlat (struct ata_queued_cmd *qc );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • qc β€” your storage for the translated ATA taskfile. this is where the magic gets written, so hand her a real one, mmkay? 🫢

πŸ”₯ DESCRIPTION πŸ”₯

so what she actually does: she sets up an ATA taskfile to issue STANDBY (that's the stop part) or READ VERIFY (that's the start part). no cap, that's the whole translation gig ✨

and here's a little aside the original drops in β€” perhaps these commands should be preceded by CHECK POWER MODE to see what power mode the device is already in. like, a lil vibe check before you commit, y'know? πŸ™ˆ [See SAT revision 5 at www.t10.org]

LOCKING: spin_lock_irqsave(host lock) β€” yes, that lock, hold it properly πŸ’€


πŸ‘‘ RETURN πŸ‘‘

  • Zero on success πŸŽ‰
  • non-zero on error 😭

🌈 SEE ALSO 🌈

the kernel file where she lives: ./drivers/ata/libata-scsi.c β€” go visit her sometime πŸ’–

and the whole friend group, fr fr:


okay that's the whole page, you ate that πŸ’… stay in ./drivers/ata, and remember this lil masterclass dropped October 2026 in the Kernel API Manual β€” mwah, love u, go translate some commands πŸ§šπŸ’œ

πŸ“¦ where this page comes from