diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-17 05:32:35 -0500 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2016-11-19 12:22:15 -0500 |
commit | 2dde123b23ceba4b6d0d780b4e9fdcfb94621747 (patch) | |
tree | a4043ad1aacb1c99d97fa497d643ef3938dd18f3 /Documentation/doc-guide | |
parent | 327f5a754ab14aa9dc20e9c31cf776680b1d9a4d (diff) |
parse-headers.rst: add an introduction to the man page
The pod2rst tool generated a man page for parse-headers.pl
script, but it is better to put it into some context.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/doc-guide')
-rw-r--r-- | Documentation/doc-guide/parse-headers.rst | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/Documentation/doc-guide/parse-headers.rst b/Documentation/doc-guide/parse-headers.rst index a1867d757ff4..615e25ec64bb 100644 --- a/Documentation/doc-guide/parse-headers.rst +++ b/Documentation/doc-guide/parse-headers.rst | |||
@@ -1,6 +1,28 @@ | |||
1 | ================ | 1 | =========================== |
2 | Including uAPI header files | ||
3 | =========================== | ||
4 | |||
5 | Sometimes, it is useful to include header files and C example codes in | ||
6 | order to describe the userspace API and to generate cross-references | ||
7 | between the code and the documentation. Adding cross-references for | ||
8 | userspace API files has an additional vantage: Sphinx will generate warnings | ||
9 | if a symbol is not found at the documentation. That helps to keep the | ||
10 | uAPI documentation in sync with the Kernel changes. | ||
11 | The :ref:`parse_headers.pl <parse_headers>` provide a way to generate such | ||
12 | cross-references. It has to be called via Makefile, while building the | ||
13 | documentation. Please see ``Documentation/media/Makefile`` for an example | ||
14 | about how to use it inside the Kernel tree. | ||
15 | |||
16 | .. _parse_headers: | ||
17 | |||
2 | parse_headers.pl | 18 | parse_headers.pl |
3 | ================ | 19 | ^^^^^^^^^^^^^^^^ |
20 | |||
21 | .. NOTE: the man pages below were generated using pod2rst tool: | ||
22 | .. http://search.cpan.org/~dowens/Pod-POM-View-Restructured-0.02/bin/pod2rst | ||
23 | .. If you need to change anything below this point, please do the changes | ||
24 | .. at parse-headers.pl directly, re-run the script and paste the output of | ||
25 | .. the script here. | ||
4 | 26 | ||
5 | **** | 27 | **** |
6 | NAME | 28 | NAME |