jakethompson1 wrote on 2025-05-02, 17:04:
The source code was released when the author died and it's not particularly large; someone could pick it up: https://rloewelectronics.com/source/TRIM.C (note certificate warning).
If it's now under an open source license that allows further development, then someone should upload it to a site like GitHub. If the certificate for the website has already expired, then the website will certainly go offline at some point.
This is super hardware specific and does not belong in the DOS kernel, any more than code to handle a specific Adaptec SCSI card does.
It would be reasonable as a config.sys driver or TSR. It's kind of the reverse of the DOS 6 Undelete support for delete sentry and delete tracker. Rather than hooking the file delete call and recording metadata about the file to make it easier to undelete, you would TRIM those sectors instead.
If it is very controller-specific, then perhaps modularization and a higher-level interface would make the most sense, so that you can combine different controller adaptations with the higher-level TRIM TSR. But if you create a higher-level TSR with a standard interface for controller-specific features, then that could at least be included in the kernel. The controller-specific things then remain external, outside the kernel.