Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
drivers
staging
bcm
Queue.h
Go to the documentation of this file.
1
/*************************************
2
* Queue.h
3
**************************************/
4
#ifndef __QUEUE_H__
5
#define __QUEUE_H__
6
7
8
9
#define ENQUEUEPACKET(_Head, _Tail,_Packet) \
10
do \
11
{ \
12
if (!_Head) { \
13
_Head = _Packet; \
14
} \
15
else { \
16
(_Tail)->next = _Packet; \
17
} \
18
(_Packet)->next = NULL; \
19
_Tail = _Packet; \
20
}while(0)
21
#define DEQUEUEPACKET(Head, Tail ) \
22
do \
23
{ if(Head) \
24
{ \
25
if (!Head->next) { \
26
Tail = NULL; \
27
} \
28
Head = Head->next; \
29
} \
30
}while(0)
31
#endif //__QUEUE_H__
Generated on Thu Jan 10 2013 13:55:18 for Linux Kernel by
1.8.2