linux内核设计与实现 第二章.docVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Chapter 2. Getting Started with the Kernel In this chapter, we introduce some of the Basics of the Linux kernel: where to get its source, how to compile it, and how to install the new kernel. We then go over some kernel assumptions, differences between the kernel and user-space programs, and common methods used in the kernel. The kernel has some intriguing differences over other beasts, but certainly nothing that cannot be tamed. Lets tackle it. 第二章 从内核出发 在这一章,我们介绍Linux内核一些基本常识:从何处获取源码,如何编译它,又如何安装新内核。那么,让我们考察一下内核的一些状态、内核程序与用户空间程序的差异,以及内核所用一般函数的特点。 内核像性格怪异的猛兽,但并非不可驯服。让我们来驾驭它。 Obtaining the Kernel Source The current Linux source code is always available in both a complete tarball and an incremental patch from the official home of the Linux kernel, . Unless you have a specific reason to work with an older version of the Linux source, you always want the latest code. The repository at is the place to get it, along with additional patches from a number of leading kernel developers. 2.1获取内核源码 在Linux内核官方网站,可以随时获取当前版本的Linux源代码,可以是完整的压缩形式,也可以是增量补丁形式。 除非特殊情况下需要Linux源码的旧版本,一般都希望拥有最新的代码。是源码的库存之处,那些领导潮流的内核开发者所发布的增量补丁也放在这里。 Installing the Kernel Source The kernel tarball is distributed in both GNU zip (gzip) and bzip2 format. Bzip2 is the default and preferred format, as it generally compresses quite a bit better than gzip. The Linux kernel tarball in bzip2 format is named linux-x.y.z.tar.bz2, where x.y.z is the version of that particular release of the kernel source. After downloading the source, uncompressing and untarring it is simple. If your tarball is compressed with bzip2, run $ tar xvjf linux-x.y.z.tar.bz2 If it is compressed with GNU zip, run $ tar xvzf linux-x.y.z.tar.gz This uncompresses and untars the source to the directory linux-x.y.z. 2.1.1安装内核源代码 内核压缩以GNU zip(gzip)和bzip2两种形式发布。bzip2是缺省和首选形式,因为它在压缩上比gzip有相当的优势。以bzip2形式发布的Linux内核叫做linux-x.y.z.tar.bz2,这里x.y.z是内核源码的具体版本。下载了源代码之后,就可以轻而易举地对其解压。如果压缩形式是bzip2,则运行: $ tar xvjf linux-x.y.z.tar.bz2 如果压缩形式是GNU的zip,则运行 $

文档评论(0)

xxj1658888 + 关注
实名认证
文档贡献者

教师资格证持证人

该用户很懒,什么也没介绍

领域认证该用户于2024年04月12日上传了教师资格证

1亿VIP精品文档

相关文档