diff options
author | Jani Nikula <jani.nikula@intel.com> | 2016-06-07 12:13:56 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-06-10 16:46:55 +0300 |
commit | 03d35d9ec4ae50afeafc3ab26d8207b7069f3cba (patch) | |
tree | 82f4957e9757b67e4db8b98edcc7db1ffb6e3000 /include | |
parent | 057de5c4dd536bdf29275ec75910737087594860 (diff) | |
download | linux-03d35d9ec4ae50afeafc3ab26d8207b7069f3cba.tar.bz2 |
Documentation/sphinx: add support for specifying extra export files
Let the user specify file patterns where to look for the EXPORT_SYMBOLs
in addition to the file with kernel-doc comments. This is directly based
on the -export-file FILE option added to kernel-doc in "kernel-doc: add
support for specifying extra files for EXPORT_SYMBOLs", but we extend
that with globbing patterns in the Sphinx extension.
The file patterns are added as options to the :export: and :internal:
arguments of the kernel-doc directive. For example, to extract the
documentation of exported functions from include/net/mac80211.h:
.. kernel-doc:: include/net/mac80211.h
:export: net/mac80211/*.c
Without the file pattern, no exported functions would be found, as the
EXPORT_SYMBOLs are placed in the various source files under
net/mac80211.
The matched files are also added as dependencies on the document in
Sphinx, as they may affect the output. This is one of the reasons to do
the globbing in the Sphinx extension instead of in scripts/kernel-doc.
The file pattern remains optional, and is not needed if the kernel-doc
comments and EXPORT_SYMBOLs are placed in the source file passed in as
the main argument to the kernel-doc directive. This is the most common
case across the kernel source tree.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions