Skip to content

Latest commit

 

History

History
92 lines (67 loc) · 2.8 KB

nf-storport-storportinitializedpc.md

File metadata and controls

92 lines (67 loc) · 2.8 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:storport.StorPortInitializeDpc
StorPortInitializeDpc function (storport.h)
The StorPortInitializeDpc routine initializes a StorPort DPC.
storage\storportinitializedpc.htm
storage
03/29/2018
StorPortInitializeDpc function
StorPortInitializeDpc, StorPortInitializeDpc routine [Storage Devices], storage.storportinitializedpc, storport/StorPortInitializeDpc, storprt_984c8e07-f6c8-452f-a333-dd23a0fdf9f7.xml
storport.h
Storport.h
Universal
Windows
StorPortInitializeDpc
storport/StorPortInitializeDpc
APIRef
kbSyntax
HeaderDef
storport.h
StorPortInitializeDpc

StorPortInitializeDpc function

-description

The StorPortInitializeDpc routine initializes a StorPort DPC.

-parameters

-param DeviceExtension [in]

Pointer to the per-adapter device extension.

-param Dpc [out]

Pointer to a buffer where a DPC object of type STOR_DPC will be created. The caller must ensure that the size in bytes of this buffer is greater than or equal to sizeof(STOR_DPC).

-param HwDpcRoutine [in]

Pointer to the DPC routine that corresponds to the DPC object pointed to by Dpc. The prototype for this deferred routine is defined in Storport.h as follows:

typedef
VOID
(*PHW_DPC_ROUTINE) 
  IN PSTOR_DPC  Dpc,
  IN PVOID  HwDeviceExtension,
  IN PVOID  SystemArgument1,
  IN PVOID  SystemArgument2
  );

-remarks

The StorPortInitializeDpc routine must be called during HBA initialization from within the miniport driver's HwStorPassiveInitializeRoutine routine.

This routine is implemented using inline function definitions, so that miniport drivers that use this routine will not have to link to libraries that are dependent on the version of the operating system. Miniport drivers can use this routine without sacrificing backward compatibility with versions of the operating system that do not support DPCs in storage miniport drivers.

-see-also

HwStorPassiveInitializeRoutine

STOR_DPC