Question

Anyone know where I'd find an ATA reference that details the protocol for triggering a TRIM? I'm looking to discover what sort of structure/object/data I'd need to send in a raw IOCTL to get an ATA device to trigger a TRIM (assuming appropriate hardware/firmware support, obviously).

Thanks.

Was it helpful?

Solution

You will find more than you ever wanted to know about ATA on T13's website.

The most recent published spec ATA8 contains TRIM. It is the Data Set Management command.

This document (a clarification to an addendum to ATA8) probably has what you need.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top