#define LIST_HEAD_INIT(name) { &(name), &(name) }
#define LIST_HEAD(name) \
struct list_head name = LIST_HEAD_INIT(name)
#define __list_for_each(pos, head) \
for (pos = (head)->next; pos != (head); pos = pos->next)
static LIST_HEAD(xxxx);
struct list_head *p;
__list_for_each(p, &xxxx){
/*code here*/
}