📄 解读linux内核源码 .htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0049)http://www.heblinux.org/view.php?skin=art&ID=2589 -->
<HTML><HEAD><TITLE>linuxbyte</TITLE>
<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE type=text/css>A:link {
COLOR: #000000; TEXT-DECORATION: none
}
A:visited {
COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
TEXT-DECORATION: underline
}
BODY {
FONT-SIZE: 12px; SCROLLBAR-ARROW-COLOR: #395d81; BACKGROUND-COLOR: #ffffff
}
TABLE {
BORDER-RIGHT: #889093 1px solid; BORDER-TOP: #889093 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #889093 1px solid; COLOR: #000000; BORDER-BOTTOM: #889093 1px solid
}
TEXTAREA {
BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: #666666 1px solid; COLOR: #000000; BORDER-BOTTOM: #666666 1px solid; FONT-FAMILY: Verdana, Tahoma, Arial; BACKGROUND-COLOR: #f8f8f8
}
INPUT {
BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: #666666 1px solid; COLOR: #000000; BORDER-BOTTOM: #666666 1px solid; FONT-FAMILY: Verdana, Tahoma, Arial; BACKGROUND-COLOR: #f8f8f8
}
SELECT {
FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Tahoma, Verdana; BACKGROUND-COLOR: #f8f8f8
}
.nav {
FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Tahoma, Verdana
}
.header {
FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #ffffff; FONT-FAMILY: Tahoma, Verdana; BACKGROUND-COLOR: #698cc3
}
.category {
FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Tahoma, Verdana; BACKGROUND-COLOR: #efefef
}
.multi {
FONT-SIZE: 11px; COLOR: #003366; FONT-FAMILY: Tahoma, Verdana
}
.smalltxt {
FONT-SIZE: 11px; FONT-FAMILY: Tahoma, Verdana
}
.mediumtxt {
FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Tahoma, Verdana
}
.bold {
FONT-WEIGHT: bold
}
</STYLE>
</STYLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY leftMargin=0 background=解读Linux内核源码 .files/bg.gif topMargin=0
rightMargin=0>
<TABLE
style="BORDER-RIGHT: #656b6d 1px solid; TABLE-LAYOUT: fixed; BORDER-TOP: #656b6d 1px solid; BORDER-LEFT: #656b6d 1px solid; BORDER-BOTTOM: #656b6d 1px solid; WORD-WRAP: break-word"
cellSpacing=0 cellPadding=0 width="98%" align=center bgColor=#ffffff border=0>
<TBODY>
<TR height=0>
<TD width="25%"></TD>
<TD width="65%"></TD>
<TD width="10%"></TD></TR>
<TR height=26>
<TD vAlign=center align=right width="100%"
background=解读Linux内核源码 .files/topbg.jpg colSpan=3>
<FORM action=search.php method=post><SELECT name=radiobutton> <OPTION
value=news selected>-- 新闻搜索 --</OPTION> <OPTION value=articles>-- 文章搜索
--</OPTION> <OPTION value=software>-- 软件搜索 --</OPTION></SELECT><INPUT
size=15 name=Search> <INPUT type=image src="解读Linux内核源码 .files/go.gif"
border=0> </FORM></TD></TR>
<TR>
<TD align=left width="20%"><IMG src="解读Linux内核源码 .files/logo.jpg"
border=0></TD>
<TD align=middle width="60%"><IMG src="解读Linux内核源码 .files/logo2.jpg"
border=1></TD>
<TD align=middle width="20%">::<A
href="http://www.heblinux.org/news.php">网站新闻</A>::<BR>::<A
href="http://www.heblinux.org/articles.php">技术文献</A>::<BR>::<A
href="http://www.heblinux.org/softs.php">软件中心</A>::<BR>::<A
href="http://www.heblinux.org/bbs/index.php" target=_blank>讨论区</A>::
</TD></TR>
<TR>
<TD background=解读Linux内核源码 .files/tabledi.jpg colSpan=3 height=6></TD></TR>
<TR>
<TD background=解读Linux内核源码 .files/titlebg.jpg colSpan=3 height=22>
<CENTER> <B><A href="http://www.heblinux.org/index.php">首页</A></B> ||
<B><A href="http://www.heblinux.org/bbs/index.php" target=new>讨论区</A></B>
|| <B><A href="http://www.heblinux.org/news.php">新闻中心</A></B> || <B><A
href="http://www.heblinux.org/articles.php">技术文献</A></B> || <B><A
href="http://www.heblinux.org/softs.php">软件中心</A></B> || <B><A
href="http://www.heblinux.org/about.php">关于本站</A></B> || <B><A
href="mailto:oneteam@mail.linuxbyte.net">联系本站</A></B>||</CENTER></TD></TR></TBODY></TABLE>
<TABLE
style="TABLE-LAYOUT: fixed; BORDER-COLLAPSE: collapse; WORD-WRAP: break-word"
cellSpacing=0 cellPadding=0 width="98%" align=center bgColor=#ffffff border=1>
<TBODY>
<TR><!--第二列-->
<TD vAlign=top align=left width="75%"><BR> <A
href="http://www.heblinux.org/index.php">首页</A><< <A
href="http://www.heblinux.org/articles.php">技术文献</A><< <B>解读Linux内核源码 </B><BR><BR>
<UL> <BR>作者:刘伟娜 <BR><BR><BR>文章摘要:
<BR> 本文将介绍如何使Linux内核源码的解读事半功倍的方法。 <BR><BR><BR><BR>正文:
<BR><BR>解读Linux内核源码
<BR><BR><BR> Linux操作系统因其代码的开放而备受人们的青睐。很多人都希望通过对Linux内核源码的分析,了解操作系统的奥秘。本文将介绍如何使Linux内核源码的解读事半功倍的方法。
<BR><BR>一、怎样获得Linux内核源码
<BR><BR> Linux的内核源代码可以从很多途径得到。一般来讲,在安装的linux系统下,usr/src/linux目录下的东西就是内核源代码。源码的版本号有一个非常简单的编号约定:任何偶数的核心(例如2.0.30)都是一个稳定地发行的核心,而任何奇数的核心(例如2.1.42)都是一个开发中的核心。另外还可以从互连网上下载,解压缩后文件一般也都位于linux目录下。内核源代码有很多版本,目前最新的稳定版是2.2.14。
<BR><BR>二、Linux内核源码的组织形式
<BR><BR> 核心源程序的文件按树形结构进行组织,在源程序树的最上层你会看到这样一些目录: <BR> · Arch
:arch子目录包括了所有和体系结构相关的核心代码。它的每一个子目录都代表一种支持的体系结构,例如i386就是关于intel
cpu及与之相兼容体系结构的子目录。PC机一般都基于此目录; <BR> · Include:
include子目录包括编译核心所需要的大部分头文件。与平台无关的头文件在 include/linux 子目录下,与 intel
cpu相关的头文件在include/asm-i386子目录下,而include/scsi目录则是有关 scsi设备的头文件目录; <BR> ·
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -