您好,欢迎光临本网站![请登录][注册会员]  
文件名称: The Linux Kernel Module Programming Guide 2.6
  所属分类: Linux
  开发工具:
  文件大小: 526kb
  下载次数: 0
  上传时间: 2009-12-29
  提 供 者: xuya*****
 详细说明: Table of Contents Foreword ..............................................................................................................................................................1 1. Authorship...........................................................................................................................................1 2. Versioning and Notes ...........................................................................................................................1 3. Acknowledgements ........................ ......................................................................................................1 Chapter 1. Introduction ......................................................................................................................................2 1.1. What Is A Kernel Module? ...............................................................................................................2 1.2. How Do Modules Get Into The Kernel? ...........................................................................................2 1.2.1. Before We Begin .....................................................................................................................3 Chapter 2. Hello World......................................................................................................................................5 2.1. Hello, World (part 1): The Simplest Module ....................................................................................5 2.1.1. Introducing printk() .................................................................................................................6 2.2. Compiling Kernel Modules..............................................................................................................6 2.3. Hello World (part 2) ..........................................................................................................................7 2.4. Hello World (part 3): The __init and __exit Macros ........................................................................8 2.5. Hello World (part 4): Licensing and Module Documentation ..........................................................8 2.6. Passing Command Line Arguments to a Module...........................................................................10 2.7. Modules Spanning Multiple Files ...................................................................................................12 2.8. Building modules for a precompiled kernel ....................................................................................13 Chapter 3. Preliminaries..................................................................................................................................16 3.1. Modules vs Programs ......................................................................................................................16 3.1.1. How modules begin and end.................................................................................................16 3.1.2. Functions available to modules .............................................................................................16 3.1.3. User Space vs Kernel Space ..................................................................................................17 3.1.4. Name Space ...........................................................................................................................17 3.1.5. Code space .............................................................................................................................18 3.1.6. Device Drivers .......................................................................................................................18 Chapter 4. Character Device Files..................................................................................................................20 4.1. Character Device Drivers ................................................................................................................20 4.1.1. The file_operations Structure................................................................................................20 4.1.2. The file structure...................................................................................................................21 4.1.3. Registering A Device............................................................................................................21 4.1.4. Unregistering A Device .........................................................................................................22 4.1.5. chardev.c ................................................................................................................................22 4.1.6. Writing Modules for Multiple Kernel Versions ....................................................................25 Chapter 5. The /proc File System....................................................................................................................27 5.1. The /proc File System.....................................................................................................................27 Chapter 6. Using /proc For Input ....................................................................................................................30 6.1. Using /proc For Input ......................................................................................................................30 Chapter 7. Talking To Device Files .................................................................................................................34 7.1. Talking to Device Files (writes and IOCTLs)}..............................................................................34 The Linux Kernel Module Programming Guide iTable of Contents Chapter 8. System Calls...................................................................................................................................43 8.1. System Calls...................................................................................................................................43 Chapter 9. Blocking Processes .........................................................................................................................48 9.1. Blocking Processes.........................................................................................................................48 9.1.1. Enter Sandman......................................................................................................................48 Chapter 10. Replacing Printks .........................................................................................................................54 10.1. Replacing printk ............................................................................................................................54 10.2. Flashing keyboard LEDs ...............................................................................................................56 Chapter 11. Scheduling Tasks.........................................................................................................................59 11.1. Scheduling Tasks..........................................................................................................................59 Chapter 12. Interrupt Handlers......................................................................................................................63 12.1. Interrupt Handlers .........................................................................................................................63 12.1.1. Interrupt Handlers ................................................................................................................63 12.1.2. Keyboards on the Intel Architecture...................................................................................64 Chapter 13. Symmetric Multi Processing .......................................................................................................67 13.1. Symmetrical Multi−Processing .....................................................................................................67 Chapter 14. Common Pitfalls ...........................................................................................................................68 14.1. Common Pitfalls...........................................................................................................................68 Appendix A. Changes: 2.0 To 2.2....................................................................................................................69 A.1. Changes between 2.0 and 2.2 .........................................................................................................69 A.1.1. Changes between 2.0 and 2.2...............................................................................................69 Appendix B. Where To Go From Here ...........................................................................................................70 B.1. Where From Here? .........................................................................................................................70 ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: The Linux Kernel Module Programming
 输入关键字,在本站1000多万海量源码库中尽情搜索: