Documentation/ directory. /**), .rst). .rst files are found below Documentation/, but some are also found below tools/bpf/bpftool/Documentation, tools/testing/selftests/bpf and drivers/staging/media/av7110. $ make htmldocs
Documentation/output. ./drivers/gpu/drm/amd/display/dc/dc.h:558: warning: Function parameter or member 'dispclk_khz' not described in 'dc_clocks' ./drivers/gpu/drm/amd/display/dc/dc.h:558: warning: Function parameter or member 'actual_dispclk_khz' not described in 'dc_clocks' ./drivers/gpu/drm/amd/display/dc/dc.h:558: warning: Function parameter or member 'dppclk_khz' not described in 'dc_clocks' ./drivers/gpu/drm/amd/display/dc/dc.h:558: warning: Function parameter or member 'actual_dppclk_khz' not described in 'dc_clocks' ./drivers/gpu/drm/amd/display/dc/dc.h:558: warning: Function parameter or member 'disp_dpp_voltage_level_khz' not described in 'dc_clocks' ./drivers/gpu/drm/amd/display/dc/dc.h:558: warning: Function parameter or member 'dcfclk_khz' not described in 'dc_clocks' … … etc. .etc. etc. …
SPHINXOPTS can be used to pass extra options to Sphinx, for example to obtain more verbose output: $ make SPHINXOPTS=-v htmldocs
/** (and thus are similar to javadoc, gtk-doc or Doxygen). scripts/kernel-doc and scripts/split-man.pl. scripts/find-unused-docs.sh detects files with kernel-doc comments for exported functions that are not included in documentation. EXPORT_SYMBOL or EXPORT_SYMBOL_GPL
static functions) («good practice»)
static («recommendation») Documentation/rust/general-information.rst. Documentation/doc-guide/kernel-doc.rst. .. kernel-doc :: directives found in *.rst files. Documentation/gpu/vga-switcheroo.rst contains the following directive: Modes of Use ============ Manual switching and manual power control ----------------------------------------- .. kernel-doc:: drivers/gpu/vga/vga_switcheroo.c :doc: Manual switching and manual power control
drivers/gpu/vga/vga_switcheroo.c, there is a kernel doc where the referenced section is found with DOC: Manual switching and manual power control: /** * DOC: Manual switching and manual power control * * In this mode of use, the file /sys/kernel/debug/vgaswitcheroo/switch
.. kernel-doc:: directives I've encountered include: .. kernel-doc:: kernel/livepatch/state.c
:export:
.. kernel-doc:: include/linux/livepatch.h
:identifiers: klp_patch klp_object klp_func klp_callbacks klp_state
The documentation build currently spews out an unbelievable number of warnings. When you have that many, you might as well have none at all; people ignore them, and they will never notice when their work adds new ones. For this reason, eliminating warnings is one of the highest-priority tasks on the documentation TODO list.
Located under Documentation/… | |
| The Linux kernel user's and administrator's guide | admin-guide |
| Core API Documentation | core-api |
| Driver implementer's API guide | driver-api |
| The Linux kernel user-space API guide | userspace-api |
| How to write kernel documentation | doc-guide |
Documentation/. The main table of content (TOC) file is Documentation/index.rst (of which the latest generated output is found at www.kernel.org/doc/html/latest/).