Introduction plan for linux Device Drivers

Source: Internet
Author: User
Introduction plan for linux Device Drivers-general Linux technology-Linux programming and kernel information. For details, see the following section. Ldd2, that is, linux device driver 2nd. This book helps you understand the implementation of most hardware work through the Linux OpenSource OS. It is suitable for C programmer which is not very clear about the underlying hardware mechanism and implementation.

Unfortunately, I have read only the chapter of this classic, therefore, I would like to take this opportunity to learn more about this book by reading this book and practicing the code in this book, I hope that the netizens who have read this book can give us some help and tips.

Below is my understanding of this book into several parts (attached), where Level 0 and Level 1 are the basic parts; Level 2) it should be considered for programming; Level 3. X each part is relatively independent and can be carried out in a single line.

Level 0)

If you are not familiar with the kernel source code framework, read this chapter first.
Chapter 16. Physical Layout of the Kernel Source

Level 1)

Basic knowledge:
Understand the role of a device driver as a function module in LinuxOS and its position in the entire hybrid body,
The concepts and usage of Linux kernel loaded modules are clarified. In Chap11, the implementation policies of kernel module mechanisms are also given.

Chapter 1. An Introduction to Device Drivers
Chapter 2. Building and Running Modules
Chapter 11. kmod and Advanced Modularization

Level 2)
Transplantation, compatibility
Chapter 10. Judicious Use of Data Types

Level 3.1) several common kernel modules used as Device Drivers: character devices, Block devices, and network devices
Chapter 3. Char Drivers
Chapter 5. Enhanced Char Drivers Operations
Chapter 12. Loading Block Drivers
Chapter 14. Network Drivers

Level 3.2) kernel debugging technology
Chapter 4. Debugging Techniques
It is necessary to use practical experience to improve this part of content.

Level 3.3) Chapter 6 Flow of Time

Level 3.4) Chapter 9. interrupt handling

Level 3.5) memory management and DMA related content
Chapter 7. Getting Hold of Memory
Chapter 13. mmap and DMA

Level 3.6) Chapter 8. Hardware Management
This part is very important in the preparation of specific device drivers.
I/O Ports and I/O Memory
Using I/O Ports
Using Digital I/O Ports
Using I/O Memory
Backward Compatibility
Quick Reference

Level 3.7) PCI, external Component Interface
Chapter 15. Overview of Peripheral Buses
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.