内核资料来源包含文档化的函数和数据结构,例如在panic.c中:
panic.c
/** * panic - halt the system * @fmt: The text string to print * * Display a message, then perform cleanups. * * This function never returns. */ void panic(const char *fmt, ...)
与其每次查看源代码,不如将这些API视为手册,并利用现有的文档框架。
如何安装/制作内核第9部分手册(/usr/share/man/man9),其中记录了上述函数和数据结构?
/usr/share/man/man9
发布于 2014-08-05 07:22:51
假设你在使用Ubuntu,
apt-get install linux-manual-3.2
或者类似的(选择正确的版本)。还有另一个文档包
apt-get install linux-doc
但这是html。
https://unix.stackexchange.com/questions/148426
相似问题