As with all devices, you must close the trackdisk device when you have finished using it. To release the device, a CloseDevice() call is executed with the same IOExtTD used when the device was opened. This only closes the device and makes it available to the rest of the system. It does not deallocate the IOExtTD structure. CloseDevice((struct IORequest *)DiskIO);