摘要: 在linux里内核通用列表中list_for_each经常被使用。但这里有一点值得注意,最近在自己项目里就碰到了。 list_for_each的定义如下: #define list_for_each(pos, head) \ for(pos = (head)->next; pos != (head); pos = pos->next) list_del的定义如下: void list_del(s... 阅读全文
posted @ 2011-06-30 21:40 Mingxx 阅读(1379) 评论(0) 推荐(0) 编辑