Skip to content

Commit

Permalink
docs: sysctl: convert to ReST
Browse files Browse the repository at this point in the history
Rename the /proc/sys/ documentation files to ReST, using the
README file as a template for an index.rst, adding the other
files there via TOC markup.

Despite being written on different times with different
styles, try to make them somewhat coherent with a similar
look and feel, ensuring that they'll look nice as both
raw text file and as via the html output produced by the
Sphinx build system.

At its new index.rst, let's add a :orphan: while this is not linked to
the main index.rst file, in order to avoid build warnings.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mchehab committed Jul 15, 2019
1 parent 6baec31 commit 53b9537
Show file tree
Hide file tree
Showing 17 changed files with 653 additions and 484 deletions.
2 changes: 1 addition & 1 deletion Documentation/admin-guide/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3144,7 +3144,7 @@
numa_zonelist_order= [KNL, BOOT] Select zonelist order for NUMA.
'node', 'default' can be specified
This can be set from sysctl after boot.
See Documentation/sysctl/vm.txt for details.
See Documentation/sysctl/vm.rst for details.

ohci1394_dma=early [HW] enable debugging via the ohci1394 driver.
See Documentation/debugging-via-ohci1394.txt for more
Expand Down
2 changes: 1 addition & 1 deletion Documentation/admin-guide/mm/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ processes address space and many other cool things.
Linux memory management is a complex system with many configurable
settings. Most of these settings are available via ``/proc``
filesystem and can be quired and adjusted using ``sysctl``. These APIs
are described in Documentation/sysctl/vm.txt and in `man 5 proc`_.
are described in Documentation/sysctl/vm.rst and in `man 5 proc`_.

.. _man 5 proc: http://man7.org/linux/man-pages/man5/proc.5.html

Expand Down
2 changes: 1 addition & 1 deletion Documentation/admin-guide/mm/ksm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ MADV_UNMERGEABLE is applied to a range which was never MADV_MERGEABLE.

If a region of memory must be split into at least one new MADV_MERGEABLE
or MADV_UNMERGEABLE region, the madvise may return ENOMEM if the process
will exceed ``vm.max_map_count`` (see Documentation/sysctl/vm.txt).
will exceed ``vm.max_map_count`` (see Documentation/sysctl/vm.rst).

Like other madvise calls, they are intended for use on mapped areas of
the user address space: they will report ENOMEM if the specified range
Expand Down
2 changes: 1 addition & 1 deletion Documentation/core-api/printk-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Kernel Pointers

For printing kernel pointers which should be hidden from unprivileged
users. The behaviour of %pK depends on the kptr_restrict sysctl - see
Documentation/sysctl/kernel.txt for more details.
Documentation/sysctl/kernel.rst for more details.

Unmodified Addresses
--------------------
Expand Down
2 changes: 1 addition & 1 deletion Documentation/networking/ip-sysctl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2287,7 +2287,7 @@ addr_scope_policy - INTEGER


/proc/sys/net/core/*
Please see: Documentation/sysctl/net.txt for descriptions of these entries.
Please see: Documentation/sysctl/net.rst for descriptions of these entries.


/proc/sys/net/unix/*
Expand Down
67 changes: 67 additions & 0 deletions Documentation/sysctl/abi.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
================================
Documentation for /proc/sys/abi/
================================

kernel version 2.6.0.test2

Copyright (c) 2003, Fabian Frederick <[email protected]>

For general info: index.rst.

------------------------------------------------------------------------------

This path is binary emulation relevant aka personality types aka abi.
When a process is executed, it's linked to an exec_domain whose
personality is defined using values available from /proc/sys/abi.
You can find further details about abi in include/linux/personality.h.

Here are the files featuring in 2.6 kernel:

- defhandler_coff
- defhandler_elf
- defhandler_lcall7
- defhandler_libcso
- fake_utsname
- trace

defhandler_coff
---------------

defined value:
PER_SCOSVR3::

0x0003 | STICKY_TIMEOUTS | WHOLE_SECONDS | SHORT_INODE

defhandler_elf
--------------

defined value:
PER_LINUX::

0

defhandler_lcall7
-----------------

defined value :
PER_SVR4::

0x0001 | STICKY_TIMEOUTS | MMAP_PAGE_ZERO,

defhandler_libsco
-----------------

defined value:
PER_SVR4::

0x0001 | STICKY_TIMEOUTS | MMAP_PAGE_ZERO,

fake_utsname
------------

Unused

trace
-----

Unused
54 changes: 0 additions & 54 deletions Documentation/sysctl/abi.txt

This file was deleted.

Loading

0 comments on commit 53b9537

Please sign in to comment.