Windows Driver Kit: Kernel-Mode Driver Architecture
ExQueryDepthSList
The ExQueryDepthSList routine returns the number of entries currently in a given sequenced singly linked list.
USHORT
ExQueryDepthSList(
IN 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.
Comments
For more information about using this routine to implement a sequenced singly linked list, see Singly and Doubly Linked Lists.
Requirements
IRQL: <=DISPATCH_LEVEL
Headers: Declared in Wdm.h. Include Wdm.h, Ntddk.h, or Ntifs.h.
See Also
ExInitializeSListHead, ExInterlockedPushEntrySList, ExInterlockedPopEntrySList