ata_scsi_write_same_xlat(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is from the Kernel API Manual ✨ and it's all about ata_scsi_write_same_xlat β€” the function that does the SATL Write Same β†’ ATA SCT Write Same translation magic πŸ’… no cap, let's get into it.


🌸 NAME 🌸

ata_scsi_write_same_xlat β€” SATL Write Same to ATA SCT Write Same, periodt πŸ’–


✨ SYNOPSIS ✨

unsigned int ata_scsi_write_same_xlat (struct ata_queued_cmd *qc );

πŸŽ€ ARGUMENTS πŸŽ€

  • qc β€” the command that's getting translated, bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: we're taking a SCSI WRITE SAME command and translating it into either a DSM TRIM command or an SCT Write Same command 🌈 the way it decides is by checking whether the WRITE SAME command has the UNMAP flag πŸ‘‘

  • When set β€” translate it to DSM TRIM βœ‚οΈ
  • When clear β€” translate it to SCT Write Same 🫧

that's the whole vibe check. iconic behavior honestly πŸ’€βœ¨


πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ that's the whole page, bestie β€” it lives in ./drivers/ata, dated October 2026, straight from the Kernel API Manual 🫢✨

πŸ“¦ where this page comes from