在内核源码树根目录下,运行make help 查看可以使用的make目标有哪些,其中有几种文档格式
Documentation targets:
Linux kernel internal documentation in different formats:
htmldocs - HTML
pdfdocs - PDF
psdocs - Postscript
xmldocs - XML DocBook
mandocs - man pages
installmandocs - install man pages generated by mandocs
cleandocs - clean all generated DocBook files
//
在linux没有找到一个好用的帮忙文档,像windows中有MS强大的MSDN,
而刚开始入门又不似一些大牛能刷刷的直接找到定义的头文件,甚至源文件,,,所以痛苦的时光时常发生,
今天网上看了一下,其实系统自带的man工具就有很强大的功能,只是我们需要安装各个库的帮忙文档而矣
需要查找类似于pthread_create函数需要安装 posix函数帮忙文档
sudo apt-get install manpages-posix
sudo apt-get install manpages-posix-dev
如果需要查看类似module_init等内核函数肯需要安装 linux-doc
sudo apt-get install linux-doc
sudo apt-get install libcorelinux-doc