PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

IOCommandIsComplete

IOCommandIsComplete lets a driver tell the Device Manager that an I/O request has been completed.

OSStatus IOCommandIsComplete(
                     IOCommandID ID,
                     OSErr result);
ID
Specifies the ID of a command.
result
The status value to place in the IO parameter block. This value must be a non-negative value.
DESCRIPTION

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.

EXECUTION CONTEXT

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.

RESULT CODES
noErr 0 No error
paramErr -50 Bad parameter

Note

The OSStatus type is described in Error Returns.


© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)