我有一个 troff 格式的文件,想重铸到手册页
文件.txt:
.. c:function:: bool is_module_percpu_address (unsigned long addr)
test whether address is from module static percpu
**Parameters**
``unsigned long addr``
address to test
**Description**
Test whether **addr** belongs to module static percpu area.
**Return**
``true`` if **addr** is from module static percpu area
.. c:function:: int module_refcount (struct module * mod)
return the refcount or -1 if unloading
**Parameters**
``struct module * mod``
the module we're checking
**Return**
-1 if the module is in the process of unloading
otherwise the number of references in the kernel to the module
当我这样做时,我并不真正了解 groff 的输出groff file.txt | man -l -
。
如您所见,我从未做过手册页,只是想使用 troff 格式并使其成为可读的手册页。
怎么做?
PS:输出来自kernel-doc
提供的源代码树的 perl 脚本。我确实知道它是否是 troff 格式,但脚本是这样说的(Output troff manual page format
)