The ExInterlockedFlushSList routine removes all entries on a sequenced, singly-linked list (S-List) in a synchronized, multiprocessor-safe way.
PSINGLE_LIST_ENTRY
ExInterlockedFlushSList (
IN PSLIST_HEADER ListHead
);
If there are entries on the specified S-List, ExInterlockedFlushSList returns a pointer to the first entry on the S-List; otherwise, it returns NULL.
Declared in ntddk.h. Include ntddk.h.
ExInterlockedFlushSList sets the pointer to the first entry on the specified S-List to NULL.