Trackdisk Device, 303 adding an interrupt handler, 314 additional information, 322 byte offset calculation, 307 clearing the track buffer, 310 closing, 308 commands and functions, 304 controlling the drive motor, 310 determining drive geometry, 309 determining the diskchange number, 313 determing write-protect status, 312 determining drive type, 312 determining the number of tracks, 312 determining the presence of a disk, 312 device interface, 305 diagnostic commands, 314 ejecting a disk, 311 enhanced commands, 305 error codes, 317 floppy disk I/O, 306 formatting a track, 311 iotd_Count, 305 low-level access, 315 moving the drive head, 314 notification of disk changes, 314 opening, 307 reading raw data, 315 reading, 307 removing an interrupt handler, 314 restrictions, 306 sector label, 306 status commands, 311 updating a track sector, 310 writing raw data, 316 writing, 308