Get man pages for driver functions

旧时模样 提交于 2019-12-07 15:44:41

问题


I am new to linux device drivers. I would like to know if there are man pages for the driver functions like register_chrdev. If yes, then how do I get them? Is there a package that I can download using apt-get?


回答1:


The Linux kernel pages in the man program reside in section 9, which is (un)fortunately a non-standard section. See this. Popular Linux distributions like Ubuntu don't distribute the man pages that fall under this section through their software channels (?).

They're still available, for example, Debian provides one. There are also online versions of the man pages.




回答2:


Actually the kernel has an ABI and not an API, as the internal interface is changing quickly.

The best way to learn the Linux kernel is reading the source code. If you are interested in character device drivers, then I would recommend to read LDD3 book and have a look how other device driver use the mentioned calls in your kernel source code. This way you will get an idea how to use the kernel ABI for your driver.



来源:https://stackoverflow.com/questions/15729387/get-man-pages-for-driver-functions

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