linux内核模块编程(标记版)

linux 内核

Foreword...........................................................................................................................................3

作者声明...........................................................................................................................3

版本和注意.......................................................................................................................3

感谢...................................................................................................................................3

译者注...............................................................................................................................3

Chapter1.Introduction.....................................................................................................................4

什么是内核模块?...........................................................................................................4

内核模块是如何被调入内核工作的?...........................................................................4

Chapter2.HelloWorld.....................................................................................................................7

Hello,World(part1):最简单的内核模块......................................................................7

HelloWorld(part2)..........................................................................................................9

HelloWorld(part3):关于__init和__exit宏................................................................10

HelloWorld(part4):内核模块证书和内核模块文档说明..........................................11

从命令行传递参数给内核模块.....................................................................................13

由多个文件构成的内核模块.........................................................................................16

为已编译的内核编译模块.............................................................................................18

Chapter3.Preliminaries..................................................................................................................20

内核模块和用户程序的比较.................................................................................................20

内核模块是如何开始和结束的.....................................................................................20

模块可调用的函数.........................................................................................................20

用户空间和内核空间.....................................................................................................21

命名空间.........................................................................................................................21

代码空间.........................................................................................................................22

DeviceDrivers.................................................................................................................22

Chapter4.CharacterDeviceFiles...................................................................................................24

字符设备文件.........................................................................................................................24

关于file_operations结构体.....................................................................................24

Chapter5.The/procFileSystem....................................................................................................32

关于/proc文件系统...................................................................................................32

Chapter6.Using/procForInput....................................................................................................36

使用/proc作为输入...................................................................................................36

Chapter7.TalkingToDeviceFiles.................................................................................................43

与设备文件对话(writesandIOCTLs)..........................................................................43

Chapter8.SystemCalls..................................................................................................................56

系统调用.........................................................................................................................56

Chapter9.BlockingProcesses........................................................................................................62

阻塞进程.........................................................................................................................62

Chapter10.ReplacingPrintks.........................................................................................................70

替换printk......................................................................................................................70

让你的键盘指示灯闪起来.............................................................................................72

Chapter11.SchedulingTasks.........................................................................................................76

任务调度.........................................................................................................................76

Chapter12.InterruptHandlers........................................................................................................81

InterruptHandlers...........................................................................................................81

Chapter13.SymmetricMultiProcessing........................................................................................86

对称多线程处理.............................................................................................................86

你可能喜欢

  • linux内核启动分析
  • Linux编程
  • Linux系统命令使用详解
  • Linux内核配置
  • linux内核实验
  • 语言分析
  • linux内核编译

linux内核模块编程(标记版)相关文档

最新文档

返回顶部