码迷,mamicode.com
首页 > 系统相关 > 详细

Linux内核数据结构hlist_head

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

标签:内核   hash   next   数据结构   ext   style   分享图片   linux   散列表   

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

标签:内核   hash   next   数据结构   ext   style   分享图片   linux   散列表   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!