ITKeyword,专注技术干货聚合推荐

注册 | 登录

The Linux Kernel Module Programming Guide

zahuopuboss 分享于

2021腾讯云限时秒杀,爆款1核2G云服务器298元/3年!(领取2860元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1062

2021阿里云最低价产品入口+领取代金券(老用户3折起),
入口地址https://www.aliyun.com/minisite/goods

推荐:Linux kernel & module program

Linux内核/模块开发常见问题集(FAQ)(转载) 1. 请推荐一些好的Linux内核参考书? a.《Linux Device Drivers, 2nd Edition》,有中文译本   b.《Understanding the

原文地址:http://tldp.org/LDP/lkmpg/2.6/html/

推荐:Add kernel module to Linux/Android kernel srouce code tree.

For example, kernel version: 2.6.29. Driver: g-sensor. 1. Copy drivers or kernel modules srouce code to ./devices/misc/g-sensor   2. Modification ./de

 

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
2.2. Compiling Kernel Modules
2.3. Hello World (part 2)
2.4. Hello World (part 3): The__init and __exit Macros
2.5. Hello World (part 4): Licensing and Module Documentation
2.6. Passing Command Line Arguments to a Module
2.7. Modules Spanning Multiple Files
2.8. Building modules for a precompiled kernel
3. Preliminaries
3.1. Modules vs Programs
4. Character Device Files
4.1. Character Device Drivers
5. The /proc File System
5.1. The /proc File System
5.2. Read and Write a /proc File
5.3. Manage /proc file with standard filesystem
5.4. Manage /proc file with seq_file
6. Using /proc For Input
6.1. TODO: Write a chapter about sysfs
7. Talking To Device Files
7.1. Talking to Device Files (writes and IOCTLs)
8. System Calls
8.1. System Calls
9. Blocking Processes
9.1. Blocking Processes
10. Replacing Printks
10.1. Replacing printk
10.2. Flashing keyboard LEDs
11. Scheduling Tasks
11.1. Scheduling Tasks
12. Interrupt Handlers
12.1. Interrupt Handlers
13. Symmetric Multi Processing
13.1. Symmetrical Multi-Processing
14. Common Pitfalls
14.1. Common Pitfalls
A. Changes: 2.0 To 2.2
A.1. Changes between 2.4 and 2.6
B. Where To Go From Here
B.1. Where From Here?
Index
List of Figures
5-1. How seq_file works
List of Examples
2-1. hello-1.c
2-2. Makefile for a basic kernel module
2-3. hello-2.c
2-4. Makefile for both our modules
2-5. hello-3.c
2-6. hello-4.c
2-7. hello-5.c
2-8. start.c
2-9. stop.c
2-10. Makefile
4-1. chardev.c
5-1. procfs1.c
5-2. procfs2.c
5-3. procfs3.c
5-4. procfs4.c
7-1. chardev.c
7-2. chardev.h
7-3. ioctl.c
8-1. syscall.c
9-1. sleep.c
9-2. cat_noblock.c
10-1. print_string.c
10-2. kbleds.c
11-1. sched.c
12-1. intrpt.c

 

推荐:Linux Debugging 8 - Kernel Module

refer to http://tldp.org/LDP/lkmpg/2.6/html/   The Linux Kernel Module Programming Guide    

原文地址:http://tldp.org/LDP/lkmpg/2.6/html/   Table of Contents Foreword 1. Authorship 2. Versioning and Notes 3. Acknowledgements 1. Introduction 1.1. What Is A Kernel Module 1

相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。