(Linux 内核)双向循环链表list_head

来源:互联网 发布:naca4412翼型数据 编辑:程序博客网 时间:2024/05/29 09:23
什么是双向循环链表就不说了,学习linux的应该都有C家族的基础。
struct list_head {
  struct list_head *next, *prev;
};

list_head不是拿来单独用的,它一般被嵌到其它结构中,如:
struct str{
  char c;
  struct list_head node;
};
阅读全文
0 0
原创粉丝点击