Relationship between device and driver in linux driver development

Source: Internet
Author: User
The relationship between device and driver in linux driver development-Linux general technology-Linux programming and kernel information. The following is a detailed description. Yesterday I saw a piece of news titled "Housewives use LINUX". If we saw this news 10 years ago, we would be surprised to say, "I rely on it, housewives also use LINUX ", but now housewives use LINUX is not new to us because LINUX is everywhere from the server market to the general PC market, many of them are just like Niu Mao. We don't want to see it as hard. As Linux OS grows, a new requirement will inevitably emerge-writing drivers, just like the rapid growth of China's population, there will inevitably be a need to adopt family planning. At the same time, a new profession will emerge-a Linux-Driven Development Engineer.

If Linux driver development is involved, that is to say, when you are a newbie, you generally do not care about the device driver model, because it is too abstract in the east to the east, and will not go into details if it is not abnormal, new users are more concerned about how to write "helloword", but with the deepening of learning and understanding of Linux drivers, we have to explore the relationship between bus, device, and driver, look at the invisible hand behind the surface. Today, I don't want to talk more about bus. Today I will focus on the relationship between device and driver, because the relationship between them is ambiguous. It is worth exploring. Why? If the device is compared to a human body, the driver is the human soul. If the device is compared to a man, the driver is a woman. If the body leaves the soul, it is just a pile of bad meat, if a man leaves a woman, then nothing can be done, because a woman is the driver behind the man. If the device is Simon Qing, then the driver is Pan Jinlian.

How is the relationship between device and driver ambiguous? This is what we are most concerned about. To answer this question, we need to ask bus, because she is a matchmaker and a lead person. bus introduced the device to the driver, the relationship between the device and the driver was finally determined. How did the bus hold the cable? Today, we will not go into further investigation, and we are not very interested in the matchmaker. According to reliable information, bus connects device and driver through the family-based matching algorithm, of course, we will also think of one sentence: face-to-face. It's really good. The beauty of driver throwing (probe) is also the key.

Well, I have said a lot about it. Isn't it a bit dizzy? Finally, I sorted out the process of the ambiguous relationship between the device and the driver. First, the match was used by the matchmaker, and then the driver gave a probe ), the device fell to the driver's pomegranate skirt and had an ambiguous relationship with each other. In the end, no one could do without the other, just as the fish had left the water!
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.