In a C program, how do I tell the linux kernel to TRIM a block on a SSD disk?
I suppose I have to open() the device and fcntl() it something, but what?
It needs to be generic (i.e. work with different SSD disks)
Note: there is no ext4 filesystem on the device, just raw data.
You would send it
IOCATADELETE. Something like this: