2020-04-15 17:45:15 +03:00
.. SPDX-License-Identifier: GPL-2.0
2018-06-06 01:49:01 +03:00
.. _linux_doc:
2023-02-15 03:57:26 +03:00
==============================
2017-06-06 23:50:04 +03: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 15:14:05 +03:00
2016-10-27 00:43:00 +03: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 19:05:54 +03:00
Working with the development community
2023-02-15 03:57:26 +03:00
======================================
2017-12-29 01:17:17 +03:00
2022-09-27 19:05:54 +03: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 15:14:05 +03:00
.. toctree ::
2022-09-27 19:05:54 +03:00
:maxdepth: 1
2019-04-25 18:30:54 +03:00
2022-09-27 19:05:54 +03: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 18:30:54 +03:00
2022-09-27 19:05:54 +03:00
Internal API manuals
2023-02-15 03:57:26 +03:00
====================
2017-04-02 23:58:01 +03:00
2022-09-27 19:05:54 +03:00
Manuals for use by developers working to interface with the rest of the
kernel.
2017-04-02 23:58:01 +03:00
.. toctree ::
2022-09-27 19:05:54 +03:00
:maxdepth: 1
2017-04-02 23:58:01 +03:00
2022-09-27 19:05:54 +03:00
core-api/index
driver-api/index
subsystem-apis
Locking in the kernel <locking/index>
2017-04-02 23:58:01 +03:00
2022-09-27 19:05:54 +03:00
Development tools and processes
2023-02-15 03:57:26 +03:00
===============================
2016-10-27 00:43:00 +03:00
2022-09-27 19:05:54 +03:00
Various other manuals with useful information for all kernel developers.
2016-10-27 00:43:00 +03:00
.. toctree ::
2022-09-27 19:05:54 +03:00
:maxdepth: 1
2016-10-27 00:43:00 +03:00
2022-09-27 19:05:54 +03:00
process/license-rules
2016-11-17 13:32:33 +03:00
doc-guide/index
2022-09-27 19:05:54 +03:00
dev-tools/index
dev-tools/testing-overview
2017-05-11 14:03:27 +03:00
kernel-hacking/index
2018-02-17 08:39:34 +03: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 14:36:50 +03:00
fault-injection/index
livepatch/index
2021-07-03 18:23:16 +03: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 14:36:50 +03:00
2016-10-27 00:43:00 +03:00
2022-09-27 19:05:54 +03:00
User-oriented documentation
2023-02-15 03:57:26 +03:00
===========================
2016-10-27 00:43:00 +03:00
2022-09-27 19:05:54 +03: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-27 00:43:00 +03:00
.. toctree ::
2022-09-27 19:05:54 +03: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 19:05:59 +03: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 19:05:54 +03:00
Firmware-related documentation
2023-02-15 03:57:26 +03:00
==============================
2022-09-27 19:05:54 +03:00
The following holds information on the kernel's expectations regarding the
platform firmwares.
.. toctree ::
:maxdepth: 1
firmware-guide/index
devicetree/index
2016-10-27 00:43:00 +03: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 15:14:05 +03:00
2017-05-13 13:50:43 +03:00
Architecture-specific documentation
2023-02-15 03:57:26 +03:00
===================================
2017-05-13 13:50:43 +03:00
.. toctree ::
:maxdepth: 2
2021-03-12 18:28:03 +03:00
arch
2017-05-13 13:50:43 +03:00
2020-06-15 09:50:25 +03:00
Other documentation
2023-02-15 03:57:26 +03:00
===================
2020-06-15 09:50:25 +03: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 19:05:54 +03:00
:maxdepth: 1
2020-06-15 09:50:25 +03:00
staging/index
2018-06-06 01:49:00 +03:00
Translations
2023-02-15 03:57:26 +03:00
============
2017-01-25 07:14:33 +03:00
.. toctree ::
2018-06-06 01:49:00 +03:00
:maxdepth: 2
2017-04-08 13:24:04 +03:00
2018-06-06 01:49:00 +03:00
translations/index
2017-04-08 13:24:04 +03: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 15:14:05 +03:00
Indices and tables
==================
* :ref: `genindex`