Home  /  Autodocs  /  trackfile.device

NAME

TD_REMOVE
installs/removes the legacy disk change software interrupt handler.

FUNCTION

This command installs the legacy disk change software interrupt if io_Data is not NULL and will remove it again if io_Data is NULL. Note that there is only one single legacy disk change software interrupt per drive.

The legacy disk change software interrupt coexists with the disk change software interrupts installed/removed by the TD_ADDCHANGEINT and TD_REMCHANGEINT commands, respectively.

INPUTS

io_Device
preset by the call to OpenDevice()

io_Unit
preset by the call to OpenDevice()

io_Command
TD_REMOVE

io_Flags
0 or IOF_QUICK

io_Data
pointer to Interrupt structure or NULL

RESULT

io_Error
0 for success, or an error code as defined in <devices/trackdisk.h> or <exec/errors.h>

NOTES

This is a legacy command, which can be used by only one single client, first come, first serve. Prior to the addition of the TD_ADDCHANGEINT and TD_REMCHANGEINT commands this client was the AmigaDOS default file system.

Do not use TD_REMOVE. Always use the TD_ADDCHANGEINT and TD_REMCHANGEINT commands instead.

SEE ALSO

TD_ADDCHANGEINT, TD_REMCHANGEINT, <devices/trackdisk.h>, <exec/errors.h>