It's almost time to begin programming. This chapter introduces all the essential concepts about modules and kernel programming. In these few pages, we build and run a complete (if relatively useless) module, and look at some of the basic code shared by all modules. Developing such expertise is an essential foundation for any kind of modularized driver. To avoid throwing in too many concepts at once, this chapter talks only about modules, without referring to any specific device class. 是时候开始编程了。 本章介绍了关于模块和内核编程的所有基本概念。 在这几页中,我们构建并运行了一个完整的(如果相对无用的话)模块,并查看了所有模块共享的一些基本代码。 开发此类专业知识是任何类型的模块化驱动程序的重要基础。 为了避免一次性引入太多概念,本章只讨论模块,不涉及任何具体的设备类。
All the kernel items (functions, variables, header files, and macros) that are introduced here are described in a reference section at the end of the chapter. 本章介绍的所有内核项目(函数、变量、头文件和宏)都在本章末尾的参考部分中进行了描述。