Documentation about device driver programming on kernel 3.x

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-13 20:32:29

问题


I have some homework which I should program a virtual device driver on kernel 3.x Can you suggest some documentation about it? I'm using fedora btw. I know there are lots of tutorials, but there is some difference between 2.x and 3.x.


回答1:


There is no major difference between the last 2.6.x series kernel and the 3.x series. It's an arbitrary distinction.

The reference work for Linux device drivers is the aptly named Linux Device Drivers. It's somewhat out of date (being based on 2.6.10), but still a good guide. There are slightly less out-of-date examples on Martinez Javiers GitHub.

Of course, the ultimate guide is the code itself. Regardless of what you do you will have to refer to the code frequently. Code reading is an incredibly valuable skill, and you should practice it as much as possible.



来源:https://stackoverflow.com/questions/10582294/documentation-about-device-driver-programming-on-kernel-3-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!