Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
Queue.h File Reference

Go to the source code of this file.

Macros

#define ENQUEUEPACKET(_Head, _Tail, _Packet)
 
#define DEQUEUEPACKET(Head, Tail)
 

Macro Definition Documentation

#define DEQUEUEPACKET (   Head,
  Tail 
)
Value:
do \
{ if(Head) \
{ \
if (!Head->next) { \
Tail = NULL; \
} \
Head = Head->next; \
} \
}while(0)

Definition at line 21 of file Queue.h.

#define ENQUEUEPACKET (   _Head,
  _Tail,
  _Packet 
)
Value:
do \
{ \
if (!_Head) { \
_Head = _Packet; \
} \
else { \
(_Tail)->next = _Packet; \
} \
(_Packet)->next = NULL; \
_Tail = _Packet; \
}while(0)

Definition at line 9 of file Queue.h.