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?
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.
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