最終更新:2012-09-30 (日) 17:25:52 (4224d)
The Linux Kernel Module Programming Guide
Top / The Linux Kernel Module Programming Guide
LKMPG
http://tldp.org/LDP/lkmpg/2.6/html/lkmpg.html
2007-05-18 ver 2.6.4
Table of Contents
Foreword
1. Authorship
2. Versioning and Notes
3. Acknowledgements
1. Introduction
1.1. What Is A Kernel Module?
1.2. How Do Modules Get Into The Kernel?
2. Hello World
2.1. Hello, World (part 1): The Simplest Module
- linux/module.h
- linux/kernel.h
- init_module
- cleanup_module?
- printk
2.2. Compiling Kernel Modules
2.3. Hello World (part 2)
- linux/init.h
- module_init
- module_exit?
2.4. Hello World (part 3): The __init and __exit Macros
2.5. Hello World (part 4): Licensing and Module Documentation
- MODULE_LICENSE
- MODULE_AUTHOR
- MODULE_DESCRIPTION?
- MODULE_SUPPORTED_DEVICE?
2.6. Passing Command Line Arguments to a Module
- module_param
- module_param_array?
- module_param_string?
- linux/moduleparam.h
2.7. Modules Spanning Multiple Files
2.8. Building modules for a precompiled kernel
- cp /boot/config-`uname -r` /usr/src/linux-`uname -r`/.config?]
- cp /lib/modules/`uname -r`/build/Makefile? /usr/src/linux-`uname -r`?