F$IODel
From NitrOS-9
I/O Delete | Deletes an I/O module that is not being used |
OS9 F$IODel 103F 33 |
Entry Conditions
X address of an I/O module
Exit Conditions
None
Error Output
CC carry set on error
B error code, if any
Additional Information
- The I/O Delete call deletes the specified I/O module from the system, if the module is not in use. This system call is used mainly by the I/O Manager, and can be of limited or no use for other applications.
- This is the order in which I/O Delete operates:
- Register X passes the address of a device descriptor module, device driver module, or file manager module.
- NitrOS-9 searches the device table for the address.
- If NitrOS-9 finds the address, it checks the module’s use count. If the count is zero, the module is not being used; NitrOS-9 deletes it. If the count is not zero, the module is being used; NitrOS-9 returns an error.
- I/O Delete returns information to the Unlink system call after determining whether a device is busy.
IOMan