免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1411 | 回复: 2
打印 上一主题 下一主题

[内核入门] 内核如何实现 b+tree [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-10-31 13:07 |只看该作者 |倒序浏览

各位大侠,内核使用b+ tree吗,是如何实现的呢?

论坛徽章:
9
辰龙
日期:2014-08-18 20:38:42未羊
日期:2014-09-04 08:50:45丑牛
日期:2014-09-06 00:12:55寅虎
日期:2014-12-22 20:50:56摩羯座
日期:2015-01-14 22:28:15巳蛇
日期:2015-01-23 20:39:272015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之青岛
日期:2016-03-13 23:37:1915-16赛季CBA联赛之深圳
日期:2016-03-29 18:52:38
2 [报告]
发表于 2014-10-31 14:51 |只看该作者
http://lwn.net/Articles/314450/

From:                 Johannes Berg <johannes@sipsolutions.net>
To:                 Andrew Morton <akpm@linux-foundation.org>
Subject:                 [PATCH] add b+tree library
Date:                 Sat, 10 Jan 2009 11:47:26 +0100
Message-ID:                 <1231584446.3685.21.camel@johannes>
Cc:                 Linux Kernel list <linux-kernel@vger.kernel.org>, =?ISO-8859-1?Q?J=F6rn?= Engel <joern@logfs.org>
Archive-link:                 Article, Thread
This adds a b+tree library. The API and memory layout is documented in
the header file lib/btree.h. There are tree versions for 32, 64 and
128 bit keys as well as unsigned long (32/64 depending on platform).

Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
We've tested this code in userspace, and would appreciate still getting
it into 2.6.29 because we're working on two separate users for 2.6.30
and it's easier to manage that way. We do not expect API changes before
using it, as the code using these trees is almost finished but not well
enough tested for .29.

论坛徽章:
0
3 [报告]
发表于 2014-10-31 15:11 |只看该作者
谢谢大侠,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP