- 博客(5)
- 收藏
- 关注
转载 likely and unlikely
http://topic.csdn.net/u/20070429/08/24ea26d2-1ce1-4e97-acb1-1c08b4fba736.htmllikely和unlikely是gcc扩展的跟处理器相关的宏:#define likely(x) __builtin_expect(!!(x), 1)#define unlikely(x) __buil
2011-06-27 18:19:00 1055
翻译 paging_init()
paging_init()负责建立仅用于kernel而用户空间不可访问的页表。在IA-32系统的4GB虚拟地址空间总是以3:1的比例分配,用户态应用占用3G,kernel占用1G。当前系统上下文与分配的kernel的虚拟地址无关,每个进程都有自己指定的地址空间。这样分配的原因如下:当从用户态切换到内核态时,kernel必须嵌入到一个可靠的环境。因此分配部分地址空间仅用于kernel
2011-06-21 15:33:00 2776
原创 _setup()
System.map中有很多函数的链接,其中有些以__setup开头的函数,其定义如下: /* * Only for really core code. See moduleparam.h for the normal way. * * Force the alignment so the compiler doesnt space elements of the *
2011-06-09 21:17:00 1894
原创 PID
/* * What is struct pid? * * A struct pid is the kernels internal notion of a process identifier. * It refers to individual tasks, process groups, and sessions. While * there are processes
2011-06-09 15:15:00 4007
原创 Linux 启动流程 粗解(二)
另一个重要函数 在 start_kernel中最后调用的函数 0# 1#进程都是在这里启动的static noinline void __init_refok rest_init(void) __releases(kernel_lock){ int pid; rcu_scheduler_starting(); /* * We
2011-06-03 16:13:00 1218
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人