摘要: Linux内核链表的操作定义在kernel/include/linux/list.h中,我们将逐一分析此文件中关于链表操作的接口。1,struct list_head的定义在kernel/include/linux/types.h中:struct list_head { struct list_head *next, *prev;};struct list_head类型的结构体包含了两个指向struct list_head结构类型的成员指针next和prev,因此我们可以看出struct list_head类型的变量可以进行双向链表的操作。2,静态初始化链表头节点:/* * Si... 阅读全文
posted @ 2014-03-10 23:50 Watson 阅读(700) 评论(0) 推荐(0) 编辑
摘要: 深入分析Linux内核源码参考网址:http://oss.org.cn/kernel-book/Linux 设备驱动 Edition 3参考网址:http://oss.org.cn/kernel-book/ldd3/Git参考网址:http://www.open-open.com/lib/list/81?pn=8http://blog.csdn.net/wh_19910525/article/details/7438183git log --pretty=onelinegitshow某次的提交哈希值文件名 阅读全文
posted @ 2014-03-10 14:42 Watson 阅读(318) 评论(0) 推荐(0) 编辑