2020-04-15 14:45:15 +00:00
|
|
|
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
2018-06-05 22:49:01 +00:00
|
|
|
.. _linux_doc:
|
|
|
|
|
2023-02-15 00:57:26 +00:00
|
|
|
==============================
|
2017-06-06 20:50:04 +00:00
|
|
|
The Linux Kernel documentation
|
|
|
|
==============================
|
Documentation/sphinx: add basic working Sphinx configuration and build
Add basic configuration and makefile to build documentation from any
.rst files under Documentation using Sphinx. For starters, there's just
the placeholder index.rst.
At the top level Makefile, hook Sphinx documentation targets alongside
(but independent of) the DocBook toolchain, having both be run on the
various 'make *docs' targets.
All Sphinx processing is placed into Documentation/Makefile.sphinx. Both
that and the Documentation/DocBook/Makefile are now expected to handle
all the documentation targets, explicitly ignoring them if they're not
relevant for that particular toolchain. The changes to the existing
DocBook Makefile are kept minimal.
There is graceful handling of missing Sphinx and rst2pdf (which is
needed for pdf output) by checking for the tool and python module,
respectively, with informative messages to the user.
If the Read the Docs theme (sphinx_rtd_theme) is available, use it, but
otherwise gracefully fall back to the Sphinx default theme, with an
informative message to the user, and slightly less pretty HTML output.
Sphinx can now handle htmldocs, pdfdocs (if rst2pdf is available),
epubdocs and xmldocs targets. The output documents are written into per
output type subdirectories under Documentation/output.
Finally, you can pass options to sphinx-build using the SPHINXBUILD make
variable. For example, 'make SPHINXOPTS=-v htmldocs' for more verbose
output from Sphinx.
This is based on the original work by Jonathan Corbet, but he probably
wouldn't recognize this as his own anymore.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-19 12:14:05 +00:00
|
|
|
|
2016-10-26 21:43:00 +00:00
|
|
|
This is the top level of the kernel's documentation tree. Kernel
|
|
|
|
documentation, like the kernel itself, is very much a work in progress;
|
|
|
|
that is especially true as we work to integrate our many scattered
|
|
|
|
documents into a coherent whole. Please note that improvements to the
|
|
|
|
documentation are welcome; join the linux-doc list at vger.kernel.org if
|
|
|
|
you want to help out.
|
|
|
|
|
2022-09-27 16:05:54 +00:00
|
|
|
Working with the development community
|
2023-02-15 00:57:26 +00:00
|
|
|
======================================
|
2017-12-28 22:17:17 +00:00
|
|
|
|
2022-09-27 16:05:54 +00:00
|
|
|
The essential guides for interacting with the kernel's development
|
|
|
|
community and getting your work upstream.
|
Documentation/sphinx: add basic working Sphinx configuration and build
Add basic configuration and makefile to build documentation from any
.rst files under Documentation using Sphinx. For starters, there's just
the placeholder index.rst.
At the top level Makefile, hook Sphinx documentation targets alongside
(but independent of) the DocBook toolchain, having both be run on the
various 'make *docs' targets.
All Sphinx processing is placed into Documentation/Makefile.sphinx. Both
that and the Documentation/DocBook/Makefile are now expected to handle
all the documentation targets, explicitly ignoring them if they're not
relevant for that particular toolchain. The changes to the existing
DocBook Makefile are kept minimal.
There is graceful handling of missing Sphinx and rst2pdf (which is
needed for pdf output) by checking for the tool and python module,
respectively, with informative messages to the user.
If the Read the Docs theme (sphinx_rtd_theme) is available, use it, but
otherwise gracefully fall back to the Sphinx default theme, with an
informative message to the user, and slightly less pretty HTML output.
Sphinx can now handle htmldocs, pdfdocs (if rst2pdf is available),
epubdocs and xmldocs targets. The output documents are written into per
output type subdirectories under Documentation/output.
Finally, you can pass options to sphinx-build using the SPHINXBUILD make
variable. For example, 'make SPHINXOPTS=-v htmldocs' for more verbose
output from Sphinx.
This is based on the original work by Jonathan Corbet, but he probably
wouldn't recognize this as his own anymore.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-19 12:14:05 +00:00
|
|
|
|
|
|
|
.. toctree::
|
2022-09-27 16:05:54 +00:00
|
|
|
:maxdepth: 1
|
2019-04-25 15:30:54 +00:00
|
|
|
|
2022-09-27 16:05:54 +00:00
|
|
|
process/development-process
|
|
|
|
process/submitting-patches
|
|
|
|
Code of conduct <process/code-of-conduct>
|
|
|
|
maintainer/index
|
|
|
|
All development-process docs <process/index>
|
2019-04-25 15:30:54 +00:00
|
|
|
|
|
|
|
|
2022-09-27 16:05:54 +00:00
|
|
|
Internal API manuals
|
2023-02-15 00:57:26 +00:00
|
|
|
====================
|
2017-04-02 20:58:01 +00:00
|
|
|
|
2022-09-27 16:05:54 +00:00
|
|
|
Manuals for use by developers working to interface with the rest of the
|
|
|
|
kernel.
|
2017-04-02 20:58:01 +00:00
|
|
|
|
|
|
|
.. toctree::
|
2022-09-27 16:05:54 +00:00
|
|
|
:maxdepth: 1
|
2017-04-02 20:58:01 +00:00
|
|
|
|
2022-09-27 16:05:54 +00:00
|
|
|
core-api/index
|
|
|
|
driver-api/index
|
|
|
|
subsystem-apis
|
|
|
|
Locking in the kernel <locking/index>
|
2017-04-02 20:58:01 +00:00
|
|
|
|
2022-09-27 16:05:54 +00:00
|
|
|
Development tools and processes
|
2023-02-15 00:57:26 +00:00
|
|
|
===============================
|
2016-10-26 21:43:00 +00:00
|
|
|
|
2022-09-27 16:05:54 +00:00
|
|
|
Various other manuals with useful information for all kernel developers.
|
2016-10-26 21:43:00 +00:00
|
|
|
|
|
|
|
.. toctree::
|
2022-09-27 16:05:54 +00:00
|
|
|
:maxdepth: 1
|
2016-10-26 21:43:00 +00:00
|
|
|
|
2022-09-27 16:05:54 +00:00
|
|
|
process/license-rules
|
2016-11-17 10:32:33 +00:00
|
|
|
doc-guide/index
|
2022-09-27 16:05:54 +00:00
|
|
|
dev-tools/index
|
|
|
|
dev-tools/testing-overview
|
2017-05-11 11:03:27 +00:00
|
|
|
kernel-hacking/index
|
2018-02-17 05:39:34 +00:00
|
|
|
trace/index
|
docs: add some directories to the main documentation index
The contents of those directories were orphaned at the documentation
body.
While those directories could likely be moved to be inside some guide,
I'm opting to just adding their indexes to the main one, removing the
:orphan: and adding the SPDX header.
For the drivers, the rationale is that the documentation contains
a mix of Kernelspace, uAPI and admin-guide. So, better to keep them on
separate directories, as we've be doing with similar subsystem-specific
docs that were not split yet.
For the others, well... I'm too lazy to do the move. Also, it
seems to make sense to keep at least some of those at the main
dir (like kbuild, for example). In any case, a latter patch
could do the move.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
2019-06-28 11:36:50 +00:00
|
|
|
fault-injection/index
|
|
|
|
livepatch/index
|
2021-07-03 15:23:16 +00:00
|
|
|
rust/index
|
docs: add some directories to the main documentation index
The contents of those directories were orphaned at the documentation
body.
While those directories could likely be moved to be inside some guide,
I'm opting to just adding their indexes to the main one, removing the
:orphan: and adding the SPDX header.
For the drivers, the rationale is that the documentation contains
a mix of Kernelspace, uAPI and admin-guide. So, better to keep them on
separate directories, as we've be doing with similar subsystem-specific
docs that were not split yet.
For the others, well... I'm too lazy to do the move. Also, it
seems to make sense to keep at least some of those at the main
dir (like kbuild, for example). In any case, a latter patch
could do the move.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
2019-06-28 11:36:50 +00:00
|
|
|
|
2016-10-26 21:43:00 +00:00
|
|
|
|
2022-09-27 16:05:54 +00:00
|
|
|
User-oriented documentation
|
2023-02-15 00:57:26 +00:00
|
|
|
===========================
|
2016-10-26 21:43:00 +00:00
|
|
|
|
2022-09-27 16:05:54 +00:00
|
|
|
The following manuals are written for *users* of the kernel — those who are
|
|
|
|
trying to get it to work optimally on a given system and application
|
|
|
|
developers seeking information on the kernel's user-space APIs.
|
2016-10-26 21:43:00 +00:00
|
|
|
|
|
|
|
.. toctree::
|
2022-09-27 16:05:54 +00:00
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
admin-guide/index
|
|
|
|
The kernel build system <kbuild/index>
|
|
|
|
admin-guide/reporting-issues.rst
|
|
|
|
User-space tools <tools/index>
|
|
|
|
userspace-api/index
|
|
|
|
|
2022-09-27 16:05:59 +00:00
|
|
|
See also: the `Linux man pages <https://www.kernel.org/doc/man-pages/>`_,
|
|
|
|
which are kept separately from the kernel's own documentation.
|
2022-09-27 16:05:54 +00:00
|
|
|
|
|
|
|
Firmware-related documentation
|
2023-02-15 00:57:26 +00:00
|
|
|
==============================
|
2022-09-27 16:05:54 +00:00
|
|
|
The following holds information on the kernel's expectations regarding the
|
|
|
|
platform firmwares.
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
firmware-guide/index
|
|
|
|
devicetree/index
|
2016-10-26 21:43:00 +00:00
|
|
|
|
Documentation/sphinx: add basic working Sphinx configuration and build
Add basic configuration and makefile to build documentation from any
.rst files under Documentation using Sphinx. For starters, there's just
the placeholder index.rst.
At the top level Makefile, hook Sphinx documentation targets alongside
(but independent of) the DocBook toolchain, having both be run on the
various 'make *docs' targets.
All Sphinx processing is placed into Documentation/Makefile.sphinx. Both
that and the Documentation/DocBook/Makefile are now expected to handle
all the documentation targets, explicitly ignoring them if they're not
relevant for that particular toolchain. The changes to the existing
DocBook Makefile are kept minimal.
There is graceful handling of missing Sphinx and rst2pdf (which is
needed for pdf output) by checking for the tool and python module,
respectively, with informative messages to the user.
If the Read the Docs theme (sphinx_rtd_theme) is available, use it, but
otherwise gracefully fall back to the Sphinx default theme, with an
informative message to the user, and slightly less pretty HTML output.
Sphinx can now handle htmldocs, pdfdocs (if rst2pdf is available),
epubdocs and xmldocs targets. The output documents are written into per
output type subdirectories under Documentation/output.
Finally, you can pass options to sphinx-build using the SPHINXBUILD make
variable. For example, 'make SPHINXOPTS=-v htmldocs' for more verbose
output from Sphinx.
This is based on the original work by Jonathan Corbet, but he probably
wouldn't recognize this as his own anymore.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-19 12:14:05 +00:00
|
|
|
|
2017-05-13 10:50:43 +00:00
|
|
|
Architecture-specific documentation
|
2023-02-15 00:57:26 +00:00
|
|
|
===================================
|
2017-05-13 10:50:43 +00:00
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
2023-03-14 22:39:37 +00:00
|
|
|
arch/index
|
2021-03-12 15:28:03 +00:00
|
|
|
|
2017-05-13 10:50:43 +00:00
|
|
|
|
2020-06-15 06:50:25 +00:00
|
|
|
Other documentation
|
2023-02-15 00:57:26 +00:00
|
|
|
===================
|
2020-06-15 06:50:25 +00:00
|
|
|
|
|
|
|
There are several unsorted documents that don't seem to fit on other parts
|
|
|
|
of the documentation body, or may require some adjustments and/or conversion
|
|
|
|
to ReStructured Text format, or are simply too old.
|
|
|
|
|
|
|
|
.. toctree::
|
2022-09-27 16:05:54 +00:00
|
|
|
:maxdepth: 1
|
2020-06-15 06:50:25 +00:00
|
|
|
|
|
|
|
staging/index
|
|
|
|
|
|
|
|
|
2018-06-05 22:49:00 +00:00
|
|
|
Translations
|
2023-02-15 00:57:26 +00:00
|
|
|
============
|
2017-01-25 04:14:33 +00:00
|
|
|
|
|
|
|
.. toctree::
|
2018-06-05 22:49:00 +00:00
|
|
|
:maxdepth: 2
|
2017-04-08 10:24:04 +00:00
|
|
|
|
2018-06-05 22:49:00 +00:00
|
|
|
translations/index
|
2017-04-08 10:24:04 +00:00
|
|
|
|
Documentation/sphinx: add basic working Sphinx configuration and build
Add basic configuration and makefile to build documentation from any
.rst files under Documentation using Sphinx. For starters, there's just
the placeholder index.rst.
At the top level Makefile, hook Sphinx documentation targets alongside
(but independent of) the DocBook toolchain, having both be run on the
various 'make *docs' targets.
All Sphinx processing is placed into Documentation/Makefile.sphinx. Both
that and the Documentation/DocBook/Makefile are now expected to handle
all the documentation targets, explicitly ignoring them if they're not
relevant for that particular toolchain. The changes to the existing
DocBook Makefile are kept minimal.
There is graceful handling of missing Sphinx and rst2pdf (which is
needed for pdf output) by checking for the tool and python module,
respectively, with informative messages to the user.
If the Read the Docs theme (sphinx_rtd_theme) is available, use it, but
otherwise gracefully fall back to the Sphinx default theme, with an
informative message to the user, and slightly less pretty HTML output.
Sphinx can now handle htmldocs, pdfdocs (if rst2pdf is available),
epubdocs and xmldocs targets. The output documents are written into per
output type subdirectories under Documentation/output.
Finally, you can pass options to sphinx-build using the SPHINXBUILD make
variable. For example, 'make SPHINXOPTS=-v htmldocs' for more verbose
output from Sphinx.
This is based on the original work by Jonathan Corbet, but he probably
wouldn't recognize this as his own anymore.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-19 12:14:05 +00:00
|
|
|
Indices and tables
|
|
|
|
==================
|
|
|
|
|
|
|
|
* :ref:`genindex`
|