#ifndef _linux_list_h
/* 【程序编程相关:脚本技术的极致】
#define _linux_list_h 【推荐阅读:shell学习1-文件安全与权限】 * under normal circumstances, used to verify that nobody uses 【扩展信息:http client and file】 * these are non-null pointers that will result in page faults * non-initialized list entries. */#define list_poison1 ((void *) 0x00100100)#define list_poison2 ((void *) 0x00200200)/*
* simple doubly linked list implementation. * * some of the internal functions ("__xxx") are useful when * manipulating whole lists rather than single entries, as * sometimes we already know the next/prev entries and we can * generate better code by using them directly rather than * using the generic single-entry routines. */struct list_head {
struct list_head *next, *prev;};#define list_head_init(name) { &(name), &(name) }
#define list_head(name) \
struct list_head name = list_head_init(name)#define init_list_head(ptr) do { \
(ptr)->next = (ptr); (ptr)->prev = (ptr); \} while (0)... 下一页