您的位置:首页 > 运维架构 > Linux

The Linux Kernel Module Programming Guide

2018-02-24 20:40 671 查看
Table of ContentsForeword1. Authorship2. Versioning and Notes3. Acknowledgements1. Introduction1.1. What Is A Kernel Module?1.2. How Do Modules Get Into The Kernel?2. Hello World2.1. Hello, World (part 1): The Simplest Module2.2. Compiling Kernel Modules2.3. Hello World (part 2)2.4. Hello World (part 3): The __init and __exit Macros2.5. Hello World (part 4): Licensing and Module Documentation2.6. Passing Command Line Arguments to a Module2.7. Modules Spanning Multiple Files2.8. Building modules for a precompiled kernel3. Preliminaries3.1. Modules vs Programs4. Character Device Files4.1. Character Device Drivers5. The /proc File System5.1. The /proc File System5.2. Read and Write a /proc File5.3. Manage /proc file with standard filesystem5.4. Manage /proc file with seq_file6. Using /proc For Input6.1. TODO: Write a chapter about sysfs7. Talking To Device Files7.1. Talking to Device Files (writes and IOCTLs)8. System Calls8.1. System Calls9. Blocking Processes9.1. Blocking Processes10. Replacing Printks10.1. Replacing printk10.2. Flashing keyboard LEDs11. Scheduling Tasks11.1. Scheduling Tasks12. Interrupt Handlers12.1. Interrupt Handlers13. Symmetric Multi Processing13.1. Symmetrical Multi-Processing14. Common Pitfalls14.1. Common PitfallsA. Changes: 2.0 To 2.2A.1. Changes between 2.4 and 2.6B. Where To Go From HereB.1. Where From Here?IndexList of Figures5-1. How seq_file worksList of Examples2-1. hello-1.c2-2. Makefile for a basic kernel module2-3. hello-2.c2-4. Makefile for both our modules2-5. hello-3.c2-6. hello-4.c2-7. hello-5.c2-8. start.c2-9. stop.c2-10. Makefile4-1. chardev.c5-1. procfs1.c5-2. procfs2.c5-3. procfs3.c5-4. procfs4.c7-1. chardev.c7-2. chardev.h7-3. ioctl.c8-1. syscall.c9-1. sleep.c9-2. cat_noblock.c10-1. print_string.c10-2. kbleds.c11-1. sched.c12-1. intrpt.c
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: