RtlInterlockedPushEntrySList - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
PSLIST_ENTRY
NTAPI
RtlInterlockedPushEntrySList(
    _Inout_ PSLIST_HEADER ListHead,
    _Inout_ __drv_aliasesMem PSLIST_ENTRY ListEntry
    );

#endif

View code on GitHub
// winnt.h

NTSYSAPI PSLIST_ENTRY RtlInterlockedPushEntrySList(
  [in] PSLIST_HEADER                 ListHead,
  [in] __drv_aliasesMem PSLIST_ENTRY ListEntry
);
View the official Win32 API reference

NtDoc

No description available.

Win32 API reference (nf-winnt-rtlinterlockedpushentryslist)

RtlInterlockedPushEntrySList function

Description

Inserts an item at the front of a singly linked list. Access to the list is synchronized on a multiprocessor system.

Parameters

ListHead [in]

A pointer to an SLIST_HEADER structure that represents the head of a singly linked list.

ListEntry [in]

A pointer to an SLIST_ENTRY structure that represents an item in a singly linked list.

Return value

The return value is the previous first item in the list. If the list was previously empty, the return value is NULL.

Remarks

Calls to the InterlockedPushEntrySList function are forwarded to the RtlInterlockedPushEntrySList function. Applications should call InterlockedPushEntrySList instead of calling this function directly.

See also

Interlocked Singly Linked Lists