41 PIO_STACK_LOCATION irpSp;
42 PDEVICE_EXTENSION pdx;
49 irpSp = IoGetCurrentIrpStackLocation(Irp);
53 pdx = Fdo->DeviceExtension;
59 switch (irpSp->MajorFunction)
76 case IRP_MJ_DEVICE_CONTROL:
77 case IRP_MJ_INTERNAL_DEVICE_CONTROL:
83 irpSp->MajorFunction));
85 ntStatus = STATUS_NOT_SUPPORTED;
88 FUNC_LEAVE_NTSTATUS(ntStatus);
NTSTATUS cbm_execute_createopen(IN PDEVICE_EXTENSION Pdx, IN PIRP Irp)
Execute IRPs containing the IRP_MJ_CREATEOPEN I/O function code.
NTSTATUS cbm_execute_readwrite(IN PDEVICE_EXTENSION Pdx, IN PIRP Irp)
Executes reads from or writes to the driver.
NTSTATUS cbm_startio(IN PDEVICE_OBJECT Fdo, IN PIRP Irp)
Execute an IRP.
#define PERF_EVENT_STARTIO(_x_)
Definitions for the opencbm driver.
NTSTATUS cbm_execute_devicecontrol(IN PDEVICE_EXTENSION Pdx, IN PIRP Irp)
Executes IOCTLs.
NTSTATUS cbm_execute_close(IN PDEVICE_EXTENSION Pdx, IN PIRP Irp)
Execute IRPs containing the IRP_MJ_CLOSE I/O function code.