OSErr GetIOCommandInfo(
IOCommandID ID,
IOCommandContents *contents,
IOCommandCode *command,
IOCommandKind *kind);
GetIOCommandInfo returns information about the active native driver I/O command identified by ID. GetIOCommandInfo will not work after a driver has completed a request.
GetIOCommandInfo may be called from task level or secondary interrupt level, but not from hardware interrupt level.