首页 > 系统服务 > 详细

Linux内核数据结构hlist_head

时间:2018-08-10 20:21:00      阅读:171      评论:0      收藏:0      [点我收藏+]

hlist_head 和list_head在内核中常用于hashtable,分别表示表头和表头所在的双向链表中的某项。

两者的结构如下:

struct hlist_head {
  struct hlist_node *first;
};

struct hlist_node {
  struct hlist_node *next, **pprev;
};

其内存结构如下:

技术分享图片

Hash table 为散列表数组,数组中保存着struct hlist_head.以hlist_head为链表表头的链表。

 

Linux内核数据结构hlist_head

原文:https://www.cnblogs.com/bspp1314/p/9457013.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!