NDK_FN_SRQ_NOTIFICATION_CALLBACK funzione di callback (ndkpi.h)

La funzione NdkSrqNotificationCallback (NDK_FN_SRQ_NOTIFICATION_CALLBACK) fornisce notifiche della coda di ricezione condivisa NDK (SRQ) da un provider NDK.

Sintassi

NDK_FN_SRQ_NOTIFICATION_CALLBACK NdkFnSrqNotificationCallback;

void NdkFnSrqNotificationCallback(
  [in, optional] PVOID SrqNotificationContext,
  [in]           NTSTATUS SrqStatus
)
{...}

Parametri

[in, optional] SrqNotificationContext

Area di contesto specificata nel parametro SrqNotificationContext della funzione NdkCreateSrq (NDK_FN_CREATE_SRQ) quando è stato creato l'oggetto SRQ.

[in] SrqStatus

Indica se si è verificato un errore SRQ irreversibile. Vengono definiti i codici di stato seguenti:

Termine Descrizione
STATUS_SUCCESS SrQ funziona normalmente.
STATUS_INTERNAL_ERROR Si è verificato un errore irreversibile nella query srq. SRQ non è utilizzabile. Tutte le coppie di code associate (QP) non sono utilizzabili. Non verranno segnalati completamenti futuri. Questo errore indica in genere un errore hardware.

Valore restituito

nessuno

Osservazioni

Nota Questa routine viene implementata dal consumer NDK e passata al provider NDK.
 
Un provider NDK chiama la funzione NdkSrqNotificationCallback quando il numero di richieste di ricezione accodate in SRQ scende al di sotto del numero minimo di richieste di ricezione in coda (NotifyThreshold). NotifyThreshold è un parametro di input per le funzioni NdkCreateSrq (NDK_FN_CREATE_SRQ) e NdkModifySrq (NDK_FN_MODIFY_SRQ).

Requisiti

Requisito Valore
Client minimo supportato None supported,Supported in NDIS 6.30 and later.
Server minimo supportato Windows Server 2012
Piattaforma di destinazione Windows
Intestazione ndkpi.h (include Ndkpi.h)
IRQL <=DISPATCH_LEVEL