2015年10月22日
摘要: 内核中很多地方用到队列,如果每一个数据结构都实现一个双向队列,并针对这些数据结构实现对应的操作,那么代码将会非常冗余,于是内核抽象出了list_head数据结构,并文参考内核中的代码写成,实现了一个list_head demo。#include #include using namespace st... 阅读全文
posted @ 2015-10-22 09:59 Icrt 阅读(325) 评论(0) 推荐(0) 编辑