linux内存子系统学习笔记
hooao2009
这个作者很懒,什么都没留下…
展开
-
linux内存管理(1)-内核空间
linux内存管理(1)-基础 1,linux内存管理中几个重要的结构体和数组 page unsigned long flags 一组标志,也对页框所在的管理区进行编号 atomic_t _count 该页被引用的次数 atomic_t _mapcount 页框中页表项数目,如果没有则为-1原创 2012-10-14 16:18:45 · 854 阅读 · 0 评论 -
linux内存管理(2)-用户空间
1. 编译链接的一些知识 首先,我们来编写一个简单的程序,示例代码如下 #include "stdio.h" #include "string.h" #include "stdlib.h" int i=3; int j=4; int main() { printf("value i is %d\n,address of i is 0x%lx\naddress of j is原创 2012-10-22 08:21:58 · 1028 阅读 · 0 评论