以下地址文章解释很好 http://blog.chinaunix.net/uid-27122224-id-3277511.html 对下面的结构体分析 1 struct person 2 { 3 int age; 4 int weight; 5 struct list_head list; 6 }; 遍历的方法中用到的一个重要宏,这个宏可以遍历不同类型的结构体 1 /** 2 * list_entry - get the struct for this entry 3 * @ptr: the &…