OpenCBM
Functions
cleanup.c File Reference

Process an IRP_MJ_CLEANUP. More...

#include <wdm.h>
#include "cbm_driver.h"
#include "iec.h"

Go to the source code of this file.

Functions

NTSTATUS cbm_cleanup (IN PDEVICE_OBJECT Fdo, IN PIRP Irp)
 Services IRPs containing the IRP_MJ_CLEANUP I/O function code. More...
 

Detailed Description

Process an IRP_MJ_CLEANUP.



Author
Spiro Trikaliotis

Definition in file cleanup.c.

Function Documentation

NTSTATUS cbm_cleanup ( IN PDEVICE_OBJECT  Fdo,
IN PIRP  Irp 
)

Services IRPs containing the IRP_MJ_CLEANUP I/O function code.

Services IRPs containing the IRP_MJ_CREATE I/O function code.

Parameters
FdoPointer to a DEVICE_OBJECT structure. This is the device object for the target device, previously created by the driver's AddDevice routine.
IrpPointer to an IRP structure that describes the requested I/O operation.
Returns
If the routine succeeds, it returns STATUS_SUCCESS. Otherwise, it return one of the error status values.

The driver's DriverEntry routine has stored this routine's address in DriverObject->MajorFunction[IRP_MJ_CLEANUP].

Definition at line 44 of file cleanup.c.

References FUNC_ENTER, QueueCleanup(), and QueueCompleteIrp().

Referenced by DriverCommonInit().