I read the Linux Device Driver-general Linux technology-Linux programming and kernel information. The following is a detailed description. The first time I came into contact with Linux device drivers was the Operating System Course Design two years ago. The task was to write a simple character device driver. Due to limited knowledge, it is impossible to understand what a character device is, and the program source code is basically a copy of the online copy. The only thing you have spent a little effort on is compilation.
Recently, due to the needs of the project, it took three weeks to read the third edition of the book "Linux driver" Translated by Mr. Wei Yongming, although I still cannot fully understand every detail, I still have some gains. In addition, I have some knowledge of the Linux kernel earlier, so I often feel very open and clear about this book.
The device driver model provided by Linux provides friendly interfaces. What drivers need to do is implement some callback functions, map the device memory, and apply for and manage the I/O Ports, disconnection, DMA channels, and other resources. At the same time, you should pay attention to the synchronization of critical resources. It can be said that the tricky problem is not to use the kernel API but to implement the functions of the driver itself, which is also in line with the basic logic of software design.
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