ReactOS 0.4.15-dev-7958-gcd0bb1a
linklist.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define InsertAscendingList(ListHead, NewEntry, Type, ListEntryField, SortField)
 

Macro Definition Documentation

◆ InsertAscendingList

#define InsertAscendingList (   ListHead,
  NewEntry,
  Type,
  ListEntryField,
  SortField 
)
Value:
do { \
PLIST_ENTRY current = (ListHead)->Flink; \
while (current != (ListHead)) \
{ \
if (CONTAINING_RECORD(current, Type, ListEntryField)->SortField >= \
(NewEntry)->SortField) \
{ \
break; \
} \
current = current->Flink; \
} \
\
InsertTailList(current, &((NewEntry)->ListEntryField)); \
} while (0)
Type
Definition: Type.h:7
struct task_struct * current
Definition: linux.c:32
Definition: typedefs.h:120
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Definition at line 10 of file linklist.h.