Skip to content

Commit ff41c41

Browse files
committed
docs: update old references for DocBook from the documentation
DocBook is mentioned several times at the documentation. Update the obsolete references from it at the DocBook. Acked-by: SeongJae Park <sj38.park@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
1 parent cb43fb5 commit ff41c41

12 files changed

Lines changed: 21 additions & 146 deletions

File tree

‎Documentation/PCI/MSI-HOWTO.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ must disable interrupts while the lock is held. If the device sends
186186
a different interrupt, the driver will deadlock trying to recursively
187187
acquire the spinlock. Such deadlocks can be avoided by using
188188
spin_lock_irqsave() or spin_lock_irq() which disable local interrupts
189-
and acquire the lock (see Documentation/DocBook/kernel-locking).
189+
and acquire the lock (see Documentation/kernel-hacking/locking.rst).
190190

191191
4.5 How to tell whether MSI/MSI-X is enabled on a device
192192

‎Documentation/admin-guide/README.rst‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ Documentation
5555
contains information about the problems, which may result by upgrading
5656
your kernel.
5757

58-
- The Documentation/DocBook/ subdirectory contains several guides for
59-
kernel developers and users. These guides can be rendered in a
60-
number of formats: PostScript (.ps), PDF, HTML, & man-pages, among others.
61-
After installation, ``make psdocs``, ``make pdfdocs``, ``make htmldocs``,
62-
or ``make mandocs`` will render the documentation in the requested format.
63-
6458
Installing the kernel source
6559
----------------------------
6660

‎Documentation/doc-guide/index.rst‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ How to write kernel documentation
1010
sphinx.rst
1111
kernel-doc.rst
1212
parse-headers.rst
13-
docbook.rst
1413

1514
.. only:: subproject and html
1615

‎Documentation/doc-guide/sphinx.rst‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ are used to describe the functions and types and design of the code. The
1515
kernel-doc comments have some special structure and formatting, but beyond that
1616
they are also treated as reStructuredText.
1717

18-
There is also the deprecated DocBook toolchain to generate documentation from
19-
DocBook XML template files under ``Documentation/DocBook``. The DocBook files
20-
are to be converted to reStructuredText, and the toolchain is slated to be
21-
removed.
22-
2318
Finally, there are thousands of plain text documentation files scattered around
2419
``Documentation``. Some of these will likely be converted to reStructuredText
2520
over time, but the bulk of them will remain in plain text.

‎Documentation/fb/api.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,12 @@ the FB_CAP_FOURCC bit in the fb_fix_screeninfo capabilities field.
289289
FOURCC definitions are located in the linux/videodev2.h header. However, and
290290
despite starting with the V4L2_PIX_FMT_prefix, they are not restricted to V4L2
291291
and don't require usage of the V4L2 subsystem. FOURCC documentation is
292-
available in Documentation/DocBook/v4l/pixfmt.xml.
292+
available in Documentation/media/uapi/v4l/pixfmt.rst.
293293

294294
To select a format, applications set the grayscale field to the desired FOURCC.
295295
For YUV formats, they should also select the appropriate colorspace by setting
296296
the colorspace field to one of the colorspaces listed in linux/videodev2.h and
297-
documented in Documentation/DocBook/v4l/colorspaces.xml.
297+
documented in Documentation/media/uapi/v4l/colorspaces.rst.
298298

299299
The red, green, blue and transp fields are not used with the FOURCC-based API.
300300
For forward compatibility reasons applications must zero those fields, and

‎Documentation/gpu/todo.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ The DRM reference documentation is still lacking kerneldoc in a few areas. The
228228
task would be to clean up interfaces like moving functions around between
229229
files to better group them and improving the interfaces like dropping return
230230
values for functions that never fail. Then write kerneldoc for all exported
231-
functions and an overview section and integrate it all into the drm DocBook.
231+
functions and an overview section and integrate it all into the drm book.
232232

233233
See https://dri.freedesktop.org/docs/drm/ for what's there already.
234234

‎Documentation/kernel-doc-nano-HOWTO.txt‎

Lines changed: 11 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ The format for this documentation is called the kernel-doc format.
1717
It is documented in this Documentation/kernel-doc-nano-HOWTO.txt file.
1818

1919
This style embeds the documentation within the source files, using
20-
a few simple conventions. The scripts/kernel-doc perl script, some
21-
SGML templates in Documentation/DocBook, and other tools understand
20+
a few simple conventions. The scripts/kernel-doc perl script, the
21+
Documentation/sphinx/kerneldoc.py Sphinx extension and other tools understand
2222
these conventions, and are used to extract this embedded documentation
2323
into various documents.
2424

@@ -122,15 +122,9 @@ are:
122122
- scripts/kernel-doc
123123

124124
This is a perl script that hunts for the block comments and can mark
125-
them up directly into DocBook, man, text, and HTML. (No, not
125+
them up directly into DocBook, ReST, man, text, and HTML. (No, not
126126
texinfo.)
127127

128-
- Documentation/DocBook/*.tmpl
129-
130-
These are SGML template files, which are normal SGML files with
131-
special place-holders for where the extracted documentation should
132-
go.
133-
134128
- scripts/docproc.c
135129

136130
This is a program for converting SGML template files into SGML
@@ -145,25 +139,18 @@ are:
145139

146140
- Makefile
147141

148-
The targets 'xmldocs', 'psdocs', 'pdfdocs', and 'htmldocs' are used
149-
to build XML DocBook files, PostScript files, PDF files, and html files
150-
in Documentation/DocBook. The older target 'sgmldocs' is equivalent
151-
to 'xmldocs'.
152-
153-
- Documentation/DocBook/Makefile
154-
155-
This is where C files are associated with SGML templates.
156-
142+
The targets 'xmldocs', 'latexdocs', 'pdfdocs', 'epubdocs'and 'htmldocs'
143+
are used to build XML DocBook files, LaTeX files, PDF files,
144+
ePub files and html files in Documentation/.
157145

158146
How to extract the documentation
159147
--------------------------------
160148

161149
If you just want to read the ready-made books on the various
162-
subsystems (see Documentation/DocBook/*.tmpl), just type 'make
163-
psdocs', or 'make pdfdocs', or 'make htmldocs', depending on your
164-
preference. If you would rather read a different format, you can type
165-
'make xmldocs' and then use DocBook tools to convert
166-
Documentation/DocBook/*.xml to a format of your choice (for example,
150+
subsystems, just type 'make epubdocs', or 'make pdfdocs', or 'make htmldocs',
151+
depending on your preference. If you would rather read a different format,
152+
you can type 'make xmldocs' and then use DocBook tools to convert
153+
Documentation/output/*.xml to a format of your choice (for example,
167154
'db2html ...' if 'make htmldocs' was not defined).
168155

169156
If you want to see man pages instead, you can do this:
@@ -329,37 +316,7 @@ This is done by using a DOC: section keyword with a section title. E.g.:
329316
* hardware, software, or its subject(s).
330317
*/
331318

332-
DOC: sections are used in SGML templates files as indicated below.
333-
334-
335-
How to make new SGML template files
336-
-----------------------------------
337-
338-
SGML template files (*.tmpl) are like normal SGML files, except that
339-
they can contain escape sequences where extracted documentation should
340-
be inserted.
341-
342-
!E<filename> is replaced by the documentation, in <filename>, for
343-
functions that are exported using EXPORT_SYMBOL: the function list is
344-
collected from files listed in Documentation/DocBook/Makefile.
345-
346-
!I<filename> is replaced by the documentation for functions that are
347-
_not_ exported using EXPORT_SYMBOL.
348-
349-
!D<filename> is used to name additional files to search for functions
350-
exported using EXPORT_SYMBOL.
351-
352-
!F<filename> <function [functions...]> is replaced by the
353-
documentation, in <filename>, for the functions listed.
354-
355-
!P<filename> <section title> is replaced by the contents of the DOC:
356-
section titled <section title> from <filename>.
357-
Spaces are allowed in <section title>; do not quote the <section title>.
358-
359-
!C<filename> is replaced by nothing, but makes the tools check that
360-
all DOC: sections and documented functions, symbols, etc. are used.
361-
This makes sense to use when you use !F/!P only and want to verify
362-
that all documentation is included.
319+
DOC: sections are used in ReST files.
363320

364321
Tim.
365322
*/ <twaugh@redhat.com>

‎Documentation/process/changes.rst‎

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,11 @@ DevFS has been obsoleted in favour of udev
116116

117117
Linux documentation for functions is transitioning to inline
118118
documentation via specially-formatted comments near their
119-
definitions in the source. These comments can be combined with the
120-
SGML templates in the Documentation/DocBook directory to make DocBook
121-
files, which can then be converted by DocBook stylesheets to PostScript,
122-
HTML, PDF files, and several other formats. In order to convert from
123-
DocBook format to a format of your choice, you'll need to install Jade as
124-
well as the desired DocBook stylesheets.
119+
definitions in the source. These comments can be combined with ReST
120+
files the Documentation/ directory to make enriched documentation, which can
121+
then be converted to PostScript, HTML, LaTex, ePUB and PDF files.
122+
In order to convert from ReST format to a format of your choice, you'll need
123+
Sphinx.
125124

126125
Util-linux
127126
----------
@@ -323,12 +322,6 @@ PDF outputs, it is recommended to use version 1.4.6.
323322
functionalities required for ``XeLaTex`` to work. For PDF output you'll also
324323
need ``convert(1)`` from ImageMagick (https://www.imagemagick.org).
325324

326-
Other tools
327-
-----------
328-
329-
In order to produce documentation from DocBook, you'll also need ``xmlto``.
330-
Please notice, however, that we're currently migrating all documents to use
331-
``Sphinx``.
332325

333326
Getting updated software
334327
========================
@@ -409,15 +402,6 @@ Quota-tools
409402

410403
- <http://sourceforge.net/projects/linuxquota/>
411404

412-
DocBook Stylesheets
413-
-------------------
414-
415-
- <http://sourceforge.net/projects/docbook/files/docbook-dsssl/>
416-
417-
XMLTO XSLT Frontend
418-
-------------------
419-
420-
- <http://cyberelk.net/tim/xmlto/>
421405

422406
Intel P6 microcode
423407
------------------

‎Documentation/process/howto.rst‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,6 @@ They can also be generated on LaTeX and ePub formats with::
180180
make latexdocs
181181
make epubdocs
182182

183-
Currently, there are some documents written on DocBook that are in
184-
the process of conversion to ReST. Such documents will be created in the
185-
Documentation/DocBook/ directory and can be generated also as
186-
Postscript or man pages by running::
187-
188-
make psdocs
189-
make mandocs
190-
191183
Becoming A Kernel Developer
192184
---------------------------
193185

‎Documentation/process/kernel-docs.rst‎

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -40,50 +40,18 @@ Enjoy!
4040
Docs at the Linux Kernel tree
4141
-----------------------------
4242

43-
The DocBook books should be built with ``make {htmldocs | psdocs | pdfdocs}``.
4443
The Sphinx books should be built with ``make {htmldocs | pdfdocs | epubdocs}``.
4544

4645
* Name: **linux/Documentation**
4746

4847
:Author: Many.
4948
:Location: Documentation/
50-
:Keywords: text files, Sphinx, DocBook.
49+
:Keywords: text files, Sphinx.
5150
:Description: Documentation that comes with the kernel sources,
5251
inside the Documentation directory. Some pages from this document
5352
(including this document itself) have been moved there, and might
5453
be more up to date than the web version.
5554

56-
* Title: **The Kernel Hacking HOWTO**
57-
58-
:Author: Various Talented People, and Rusty.
59-
:Location: Documentation/DocBook/kernel-hacking.tmpl
60-
:Keywords: HOWTO, kernel contexts, deadlock, locking, modules,
61-
symbols, return conventions.
62-
:Description: From the Introduction: "Please understand that I
63-
never wanted to write this document, being grossly underqualified,
64-
but I always wanted to read it, and this was the only way. I
65-
simply explain some best practices, and give reading entry-points
66-
into the kernel sources. I avoid implementation details: that's
67-
what the code is for, and I ignore whole tracts of useful
68-
routines. This document assumes familiarity with C, and an
69-
understanding of what the kernel is, and how it is used. It was
70-
originally written for the 2.3 kernels, but nearly all of it
71-
applies to 2.2 too; 2.0 is slightly different".
72-
73-
* Title: **Linux Kernel Locking HOWTO**
74-
75-
:Author: Various Talented People, and Rusty.
76-
:Location: Documentation/DocBook/kernel-locking.tmpl
77-
:Keywords: locks, locking, spinlock, semaphore, atomic, race
78-
condition, bottom halves, tasklets, softirqs.
79-
:Description: The title says it all: document describing the
80-
locking system in the Linux Kernel either in uniprocessor or SMP
81-
systems.
82-
:Notes: "It was originally written for the later (>2.3.47) 2.3
83-
kernels, but most of it applies to 2.2 too; 2.0 is slightly
84-
different". Freely redistributable under the conditions of the GNU
85-
General Public License.
86-
8755
On-line docs
8856
------------
8957

0 commit comments

Comments
 (0)