摘要: bsearch 搜索数组 示例如下: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 5 struct mi { 6 int nr; 7 char *name; 8 } months[] = { 9 { 1, "j 阅读全文
posted @ 2016-02-24 19:13 YBHello 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Linux 系统 /proc/meminfo 中的 DirectMap2M / DirectMap4k 是什么意思? 这和内核内存管理相关,我理解不深不细,试答。DirectMap2M / DirectMap4k指直接映射(direct mapping)的内存大小,从代码上来看,这两个值记录管理页表 阅读全文
posted @ 2016-02-24 10:25 YBHello 阅读(1134) 评论(0) 推荐(0) 编辑