Condividi tramite


Funzione StorPortQueryDepthSList (storport.h)

Recupera il numero di voci in un elenco collegato gestito di Storport.

Sintassi

ULONG StorPortQueryDepthSList(
  [in]      PVOID              HwDeviceExtension,
  [in, out] PSTOR_SLIST_HEADER SListHead,
  [out]     PSHORT             Result
);

Parametri

[in] HwDeviceExtension

Puntatore all'estensione del dispositivo hardware per la scheda bus host (HBA).

[in, out] SListHead

Puntatore a una struttura STOR_SLIST_HEADER che rappresenta l'intestazione di un elenco collegato singly. Questa struttura è considerata opaca e viene utilizzata solo dal driver Storport.

[out] Result

Puntatore a un valore SHORT che riceve il conteggio di profondità elenco.

Valore restituito

StorPortQueryDepthSList restituisce uno dei codici di stato seguenti:

Codice restituito Descrizione
STOR_STATUS_NOT_IMPLEMENTED
Questa funzione non viene implementata nel sistema operativo attivo.
STOR_STATUS_SUCCESS
La profondità dell'elenco è stata restituita correttamente.
STOR_STATUS_INVALID_PARAMETER
Un puntatore in SListHead o Result è NULL.

Osservazioni

Poiché StorPortQueryDepthSList non è interlocked, il valore di profondità dell'elenco a cui punta Risultato restituito non è affidabile quando più thread operano nell'elenco.

Fabbisogno

Requisito Valore
client minimo supportato Disponibile a partire da Windows 8.
piattaforma di destinazione Universale
intestazione storport.h (include Storport.h)
IRQL <= DISPATCH_LEVEL

Vedere anche

StorPortInitializeSListHead

StorPortInterlockedFlushSList

StorPortInterlockedPopEntrySList

StorPortInterlockedPushEntrySList