ExQueryDepthSList function

The ExQueryDepthSList routine returns the number of entries currently in a given sequenced singly linked list.

Syntax

USHORT ExQueryDepthSList(
  PSLIST_HEADER SListHead
);

Parameters

SListHead

A pointer to the SLIST_HEADER structure that serves as the header for the sequenced singly linked list. SListHead must have been initialized by calling ExInitializeSListHead.

Return Value

ExQueryDepthSList returns the current number of entries in the list.

Remarks

For more information about using this routine to implement a sequenced singly linked list, see Singly and Doubly Linked Lists.

Requirements

   
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= DISPATCH_LEVEL

See Also

ExInitializeSListHead

ExInterlockedPopEntrySList

ExInterlockedPushEntrySList