The ControllerControl routine starts a data transfer operation.
IO_ALLOCATION_ACTION
ControllerControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
IN PVOID MapRegisterBase,
IN PVOID Context
);
The routine must return one of the enumerated values defined by IO_ALLOCATION_ACTION.
A driver's ControllerControl routine executes in an arbitrary thread context at IRQL = DISPATCH_LEVEL.
To register a ControllerrControl routine for a specific device object, a driver must call IoCreateController to obtain a controller object, then call IoAllocateController to request use of the controller and to supply the ControllerControl routine's address. When the controller is free, the system calls the ControllerControl routine.
For detailed information about implementing a ControllerControl routine, see Writing ControllerControl Routines. Also see Controller Objects.