IOCommandIsComplete lets a driver tell the Device Manager that an I/O request has been completed.
OSStatus IOCommandIsComplete(
IOCommandID ID,
OSErr result);
The parameter ID specifies the ID of a command being completed. The value of this ID is opaque and may be dependent on the operating system version, as discussed in the note on Derived ID types. The parameter result specifies the status value to place in the IO parameter block. The driver must make sure that the request that corresponds to Command is not queued internally when it calls IOCommandIsComplete, and it may not access the parameter block afterward.
IOCommandIsComplete may be called from task level or secondary interrupt level, but not from hardware interrupt level. For a list of the execution contexts of other system routines that support native drivers, see Service Limitations.
The OSStatus type is described in Error Returns.