随笔分类 -  Linux::Kernel

Linux内核学习。
摘要:Kernel. EXPORT_SYMBOL解析Code Segment:include/module.h:struct kernel_symbol { unsigned long value; const char *name;};/* For every exported symbol, place a struct in the __ksymtab section */#define __EXPORT_SYMBOL(sym, sec) \ __CRC_SYMBOL(sym, sec) \ static const char __kstrtab_##sym[] \ __attribute__ 阅读全文
posted @ 2009-04-01 23:04 david++ 阅读(5405) 评论(0) 推荐(1)
摘要:转载自http://www.cnblogs.com/zoujiaxue/archive/2008/06/04/1213472.html计算机在启动时都是先加电,然后进行硬件检测并引导操作系统的初始化程序,然后操作系统的初始化程序程负责读入系统内核并建产系统的运行环境.一这过程相对来说比较复而且与CPU体系结构相关,这里我们通过linux并以i386的体系结构对这一过程进行较为详细的说明. 一、硬件检测 当机器加电后它首先执行BIOS(基本输入输出系统)中的代码,BIOS首先执行加电自检程序(POST),当自检通过程便完成了硬件的启动。POST程序通过对内存及其他硬件的设备的诊断检测确定硬件的存 阅读全文
posted @ 2008-11-01 14:35 david++ 阅读(6678) 评论(0) 推荐(0)
摘要:更多详细关于MBR的参见: http://www.nondot.org/sabre/os/articles/TheBootProcess/ How It Works -- Master Boot Record Version 1a by Hale Landis (landis@sugs.tware.com)THE "HOW IT WORKS" SERIESThis is one of several How It Works documents. The seriescurrently includes the following:* How It Works -- CHS 阅读全文
posted @ 2008-10-30 21:31 david++ 阅读(556) 评论(0) 推荐(0)