// ndkpi.h
NDK_FN_CQ_NOTIFICATION_CALLBACK NdkFnCqNotificationCallback;
VOID NdkFnCqNotificationCallback(
[in, optional] PVOID CqNotificationContext,
[in] NTSTATUS CqStatus
)
{...}
View the official Windows Driver Kit DDI reference
No description available.
The NdkCqNotificationCallback (NDK_FN_CQ_NOTIFICATION_CALLBACK) function is called by the NDK provider to notify the consumer about a completion queue (CQ) event.
CqNotificationContext
[in, optional]A context area that was specified in the CqNotificationContext parameter of the NdkCreateCq (NDK_FN_CREATE_CQ) function when the completion queue (CQ) object was created.
CqStatus
[in]Indicates the CQ error status. The following status codes are defined:
Term | Description |
---|---|
STATUS_SUCCESS | Indicates the CQ is operating normally. |
STATUS_BUFFER_OVERFLOW | Indicates more completions than that maximum that the CQ can hold were attempted to be queued on the CQ and the CQ is unusable. All of the associated queue pairs (QPs) are also unusable. No future completions will be reported. A STATUS_BUFFER_OVERFLOW error usually indicates a programming error. |
STATUS_INTERNAL_ERROR | Indicates a fatal error occurred on the CQ and the CQ is unusable. All of the associated queue pairs (QPs) are also unusable. No future completions will be reported. A STATUS_INTERNAL_ERROR error usually indicates a hardware error. |
An NDK provider calls NdkCqNotificationCallback to notify the consumer about a completion queue (CQ) event.
The NDK consumer specified the NdkCqNotificationCallback function in the CqNotificationContext parameter of the NdkCreateCq (NDK_FN_CREATE_CQ) function when the completion queue (CQ) object was created.
NDKPI Completion Handling Requirements