Export (0) Print
Expand All
Expand Minimize

InitializeListHead routine

The InitializeListHead routine initializes a LIST_ENTRY structure that represents the head of a doubly linked list.

Syntax


VOID InitializeListHead(
  _Out_  PLIST_ENTRY ListHead
);

Parameters

ListHead [out]

Pointer to a LIST_ENTRY structure that serves as the list header.

Return value

None

Remarks

The InitializeListHead routine sets the Flink and Blink members of ListHead to point to ListHead.

For information about using this routine when implementing a doubly linked list, see Singly and Doubly Linked Lists.

Callers of InitializeListHead can be running at any IRQL. If InitializeListHead is called at IRQL >= DISPATCH_LEVEL the storage for ListHead must be resident.

Requirements

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

IRQL

Any level (see Remarks section)

See also

ExInterlockedInsertHeadList
ExInterlockedInsertTailList
ExInterlockedRemoveHeadList
ExInterlockedPopEntryList
ExInterlockedPushEntryList
InsertHeadList
InsertTailList
IsListEmpty
KeInitializeSpinLock
PopEntryList
PushEntryList
RemoveEntryList
RemoveHeadList
RemoveTailList

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft