list_head结构的使用

在Linux 内核中,提供了一个用来建立双向循环链表的结构list_head 。使用list_head 提供的相应接口,链表操做将变得至关简单。 下面就是kernel 中的list_head 结构定义: struct list_head {         struct list_head *next, *prev; }; #define LIST_HEAD_INIT(name) { &(name
相关文章
相关标签/搜索