cancel
Showing results for 
Search instead for 
Did you mean: 

Using TRIM outside file system

idata
Esteemed Contributor III

Hi,

Im developing an user-mode benchmark that runs directly on SSD (without a filesystem), and want to use TRIM between runs.

To get this to work, Microsoft has implemented the storage data management routines which can communicate to the SSD devices with the TRIM information. The only problem is that to send the TRIM command to the device, it requires the program to runs at kernel-mode and I would therefore have to write a kernel driver to send the specific TRIM actions.

Is there any documentation on how the SSD Toolbox run the TRIM without having a kernel driver in the background allowing it to send the TRIM actions?

Kind Regards,

Matias

1 REPLY 1

idata
Esteemed Contributor III

Ended up using ATA_PASS_THROUGH_DIRECT to communicate the TRIM.