Linux設備驅動程式(2019年東南大學出版社出版的圖書)

本詞條是多義詞,共2個義項
更多義項 ▼ 收起列表 ▲

《Linux設備驅動程式》是2019年東南大學出版社出版的圖書,作者是JonathanCorbet。

基本介紹

  • 中文名:Linux設備驅動程式
  • 作者:JonathanCorbet
  • 出版時間:2019年 
  • 出版社:東南大學出版社
  • ISBN:9787564183394
內容簡介,圖書目錄,

內容簡介

  《LINUX設備驅動程式(第3版 影印版 英文版)》的作者均是Linux社區的領導者。Jonathan Corbet雖不是專職的核心代碼貢獻者,但他是備受關注的LwN.net新聞及信息網站的執行編輯。Alessandro Rubini是一名Linux代碼貢獻者,也是活躍的義大利Linux社區的靈魂人物。Greg Kroah-Hartman是目前核心中USB、PCI和驅動程式核心子系統的維護者。
  《LINUX設備驅動程式(第3版 影印版 英文版)》的這個版本已針對Linux核心的2.6.10版本徹底更新過。核心的這個版本針對常見任務完成了合理化設計及相應的簡化,如即插即用、利用sysfs檔案系統和用戶空間互動,以及標準匯流排上的多設備管理等等。
  要閱讀並理解《LINUX設備驅動程式(第3版 影印版 英文版)》,您不必首先成為核心黑客;只要您理解c語言並具有unix系統調用的一些背景知識即可。您將學到如何為字元設備、塊設備和網路接口編寫驅動程式。為此,《LINUX設備驅動程式(第3版 影印版 英文版)》提供了完整的示例程式,您不需要特殊的硬體即可編譯和運行這些示例程式。《LINUX設備驅動程式(第3版 影印版 英文版)》還在單獨的章節中講述了PCI、UsB和tty(終端)子系統。對期望了解作業系統內部工作原理的讀者來講,《LINUX設備驅動程式(第3版 影印版 英文版)》也深入闡述了地址空間、異步事件以及I/O等方面的內容。

圖書目錄

Preface
1. An Introduction to Device Drivers
The Role of the Device Driver
Splitting the Kernel
Classes of Devices and Modules
Security Issues
Version Numbering
License Terms
Joining the Kernel Development Community
Overview of the Book
2. Building and Running Modules
Setting Up Your Test System
The Hello World Module
Kernel Modules Versus Applications
Compiling and Loading
The Kernel Symbol Table
Preliminaries
Initialization and Shutdown
Module Parameters
Doing It in User Space
Quick Reference
3. Char Drivers
The Design of scull
Major and Minor Numbers
Some Important Data Structures
Char Device Registration
open and release
scull's Memory Usage
read and write
Playing with the New Devices
Quick Reference
4. Debugging Techniques
Debugging Support in the Kernel
Debugging by Printing
Debugging by Querying
Debugging by Watching
Debugging System Faults
Debuggers and Related Tools
5. Concurrency and Race Conditions
Pitfalls in scull
Concurrency and Its Management
Semaphores and Mutexes
Completions
Spinlocks
Locking Traps
Alternatives to Locking
Quick Reference
6. Advanced Char Driver Operations
ioctl
Blocking I/O
poll and select
Asynchronous Notification
Seeking a Device
Access Control on a Device File
Quick Reference
7. Time, Delays, and Deferred Work
Measuring Time Lapses
Knowing the Current Time
Delaying Execution
Kernel Timers
Tasklets
Workqueues
Quick Reference
8. Allocating Memory
The Real Story of kmalloc
Lookaside Caches
get_flee_page and Friends
vmalloc and Friends
Per-CPU Variables
Obtaining Large Buffers
Quick Reference
9. Communicating with Hardware
I/O Ports and I/O Memory
Using I/O Ports
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 Halves
Interrupt Sharing
Interrupt-Driven I/O
Quick Reference
11. Data Types in the Kernel
Use of Standard C Types
Assigning an Explicit Size to Data Items
Interface-Specific Types
Other Portability Issues
Linked Lists
Quick Reference
12. PCl Drivers
The PCI Interface
A LookBackl. ISA
PC/104 and PC/104+
Other PC Buses
SBus
NuBus
External Buses
Quick Reference
13. USB Drivers
USB Device Basics
USB and Sysfs
USB Urbs
Writing a USB Driver
USB Transfers Without Urbs
Quick Reference
14. The Linux Device Model
Kobjects, Ksets, and Subsystems
Low-Level Sysfs Operations
Hotplug Event Generation
Buses, Devices, and Drivers
Classes
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 Access
Quick Reference
16. Block Drivers
Registration
The Block Device Operations
Request Processing
Some Other Details
Quick Reference
17. Network Drivers
How snull Is Designed
Connecting to the Kernel
The net_device Structure in Detail
Opening and Closing
Packet Transmission
Packet Reception
The Interrupt Handler
Receive Interrupt Mitigation
Changes in Link State
The Socket Buffers
MAC Address Resolution
Custom ioctl Commands
Statistical Information
Multicast
A Few Other Details
Quick Reference
18. TTY Drivers
A Small TTY Driver
tty_driver Function Pointers
TTY Line Settings
ioctls
proc and sysfs Handling of TTY Devices
The tty_driver Structure in Detail
The tty_operations Structure in Detail
The tty_struct Structure in Detail
Quick Reference
Bibliography
Index

相關詞條

熱門詞條

聯絡我們