SINGLE_LIST_ENTRY structure (ntdef.h)

A SINGLE_LIST_ENTRY structure describes an entry in a singly linked list, or serves as the header for such a list.

Syntax

typedef struct _SINGLE_LIST_ENTRY {
  struct _SINGLE_LIST_ENTRY *Next;
} SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY;

Members

Next

For a SINGLE_LIST_ENTRY that serves as a list entry, the Next member points to the next entry in the list, or NULL if there is no next entry in the list. For a SINGLE_LIST_ENTRY that serves as the list header, the Next member points to the first entry in the list, or NULL if the list is empty.

Remarks

If a SINGLE_LIST_ENTRY structure is used as a list head, initialize the Next member of the structure to be NULL.

A driver can access the Next member of a SINGLE_LIST_ENTRY, but (other than initializing a list head) Next must only be updated by the system routines supplied for this purpose.

For more information about how to use SINGLE_LIST_ENTRY structures to implement a singly linked list, see Singly and Doubly Linked Lists.

Requirements

Requirement Value
Header ntdef.h (include Wdm.h, Ntddk.h)

See also

ExInterlockedPopEntryList

ExInterlockedPushEntryList

PopEntryList

PushEntryList