欢迎来到 博文网 官方网站!
Linux设备驱动程序+2

Linux设备驱动程序+2

内容简介《Linux设备驱动程序 第

联系电话:
产品详情

内容简介

《Linux设备驱动程序 第3版(影印版)》是经典著作《Linux设备驱动程序》的第3版。如果您希望在Linux操作系统上支持计算机外部设备,或者在Linux上运行新的硬件,或者只是希望一般地了解Linux内核的编程,要阅读本书。本书描述了如何针对各种设备编写驱动程序,而在过去,这些内容仅仅以口头形式交流,或者零星出现在神秘的代码注释中。

目录

Preface
1. An Introduction to Device Driverr>The Role of the Device Driver
Splitting the Kernel
Classes of Devices and Moduler>Security Issuer>Version Numbering
License Termr>Joining the Kernel Development Community
Overview of the Book
2. Building and Running Moduler>Setting Up Your Test System
The Hello World Module
Kernel Modules Versus Applicationr>Compiling and Loading
The Kernel Symbol Table
Preliminarier>Initialization and Shutdown
Module Parameterr>Doing It in User Space
Quick Reference
3. Char Driverr>The Design of scull
Major and Minor Numberr>Some important Data Structurer>Char Device Registration
open and relear>scull's Memory Usage
read and write
Playing with the New Devicer>Quick Reference
4. Debugging Techniquer>Debugging Support in the Kernel
Debugging by Printing
Debugging by Querying
Debugging by Watching
Debugging System Faultr>Debuggers and Related Toolr>5. Concurrency and Race Conditionr>Pitfalls in scull
Concurrency and Its Management
Semaphores and Mutexer>Completionr>Spinlockr>Lo Trapr>Alternatives to Lo
Quick Reference
6. Advanced Char Driver Operationr>ioctl
Blo I/O
poll and select
Asynchronous Notification
Se a Device
Access Control on a Device File
Quick Reference
7. Time, Delays, and Deferred Work
Measuring Time Lapser>Knowing the Current Time
Delaying Execution
Kernel Timerr>Taskletr>Workqueuer>Quick Reference
8. Allocating Memory
The Real Story of kmalloc
Lookaside Cacher>get_flee_page and Friendr>vmalloc and Friendr>Per-CPU Variabler>Obtaining Large Bufferr>Quick Reference
9. Communicating with Hardware
I/O Ports and I/O Memory
Using I/O Portr>An I/O Port Example
Using I/O Memory
Quick Reference
10. Interrupt Handling
Preparing the Parallel Port
Installing an Interrupt Handler
Implementing a Handler
Top and Bottom Halver>Interrupt Sharing
Interrupt-Driven I/O
Quick Reference
11. Data Types in the Kernel
Use of Standard C Typer>Assigning an Explicit Size to Data Itemr>Interface-Specific Typer>Other Portability Issuer>linked Listr>Quick Reference
12. PCl Driverr>The PCI Interface
A LookBackl. ISA
PC/104 and PC/104+
Other PC Buser>SBur>NuBur>External Buser>Quick Reference
13. USB Driverr>USB Device Basicr>USB and Sysfr>USB Urbr>Writing a USB Driver
USB Transfers Without Urbr>Quick Reference
14. The Linux Device Model
Kobjects, Ksets, and Subsystemr>Low-Level Sysfs Operationr>Hotplug Event Generation
Buses, Devices, and Driverr>Classer>Putting It All Together
Hotplug
Dealing with Firmware
Quick Reference
15. Memory Mapping and DMA
Memory Management in Linux
The mmap Device Operation
Performing Direct I/O
Direct Memory Accer>Quick Reference
16. Block Driverr>Registration
The Block Device Operationr>Request Processing
Some Other Detailr>Quick Reference
17. Network Driverr>How snull Is Designed
Connecting to the Kernel
The _device Structure in Detail
Opening and Closing
Packet Transmission
Packet Reception
The Interrupt Handler
Receive Interrupt Mitigation
Changes in link State
The Socket Bufferr>MAC ress Resolution
Custom ioctl Commandr>Statistical Information
Multicar>A Few Other Detailr>Quick Reference
18. TTY Driverr>A Small TTY Driver
tty_driver Function Pointerr>TTY Line Settingr>ioctlr>proc and sysfs Handling of TTY Devicer>The tty_driver Structure in Detail
The tty_operations Structure in Detail
The tty_struct Structure in Detail
Quick Reference
Bibliography
Index

在线客服
微信联系
客服
扫码加微信(手机同号)
电话咨询
返回顶部