man: minor improvements, post the scdoc conversion
v2 cover man: minor improvements, post the scdoc conversion
Hello all,
Here is the remaining patches from my scdoc series, re-spinned with all (:fingers-crossed:) the comments addressed.
The series includes:
- patch 1-5 - trivial fixes as white space, punctuation, etc
- patch 6-14 - expand documentation around {depmod,modprobe}.d handling, remove open-coded .d and .conf references
- patch 15 - remove "maintained by" references
- patch 16 - NEW: replace all AUTHORS sections with suggested snippet
- patch 17 - list short and long options on separate lines
Note that make distcheck has regressed on the master branch, seemingly due to the recent weakdep test.
---
Changes in v2:
- move extra bold annotation to correct patch - 2 -> 1
- reword the configuration directories section as suggested - 7, 11
- tweak MODPROBE_OPTIONS wording - 13
- add extra patch to rework the AUTHORS section as suggested - 16
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Emil Velikov (17):
man: add some extra bold/italic annotations
man: white space fixes
man: misc punctuation fixes
man: some options take an argument, mention that
man: couple of grammar/language fixes
man: stop removing DISTCONFDIR lines
man: depmod.d: document the config file order handling
man: depmod.d: factor out a CONFIGURATION FORMAT section
man: depmod.d: rework the opening description sentence
man: depmod: remove hard-coded /etc/depmod.d references
man: modprobe.d: document the config file order handling
man: modprobe.d: factor out a CONFIGURATION FORMAT section
man: add few mentions about MODPROBE_OPTIONS
man: modprobe: remove hard-coded /etc/modprobe.d references
man: remove the "Maintained by" references
man: rework AUTHORS section
man: list options one per line
man/Makefile.am | 8 ++-- man/depmod.8.scd | 78 ++++++++++++++++++++---------------- man/depmod.d.5.scd | 61 +++++++++++++++++----------- man/insmod.8.scd | 11 +++--- man/kmod.8.scd | 24 +++++++---- man/lsmod.8.scd | 13 +++--- man/modinfo.8.scd | 38 +++++++++++------- man/modprobe.8.scd | 107 +++++++++++++++++++++++++++++--------------------- man/modprobe.d.5.scd | 61 +++++++++++++++++----------- man/modules.dep.5.scd | 22 ++++++----- man/rmmod.8.scd | 25 +++++++----- 11 files changed, 268 insertions(+), 180 deletions(-)
---
base-commit: fa715f8c8b78a09f47701ce1cf46e9b67a49b8d0
change-id: 20240523-man-743d6e51eb6f
Best regards,
Signature · 1 line
Emil Velikov <[email protected]>
PATCH v2 1/17 man: add some extra bold/italic annotations
---
v2: add an extra depmod instance
--- man/depmod.8.scd | 20 ++++++++++---------- man/kmod.8.scd | 2 +- man/modinfo.8.scd | 8 ++++---- man/modprobe.8.scd | 12 ++++++------ man/modules.dep.5.scd | 11 ++++++----- man/rmmod.8.scd | 2 +- 6 files changed, 28 insertions(+), 27 deletions(-)
man/depmod.8.scd +10 -10
@@ -21,7 +21,7 @@ dependencies can get quite complex. *depmod* creates a list of module dependencies by reading each module under @MODULE_DIRECTORY@/_version_ and determining what symbols it exports and what -symbols it needs. By default, this list is written to modules.dep, and a binary +symbols it needs. By default, this list is written to *modules.dep*, and a binary hashed version named modules.dep.bin, in the same directory. If filenames are given on the command line, only those modules are examined (which is rarely useful unless all modules are listed). * depmod* also creates a list of symbols
@@ -41,20 +41,20 @@ rather than the current kernel version (as returned by *uname -r*). *-A*, *--quick* This option scans to see if any modules are newer than the - modules.dep file before any work is done: if not, it silently exits + *modules.dep* file before any work is done: if not, it silently exits rather than regenerating the files. *-b* _basedir_, *--basedir* _basedir_ If your modules are not currently in the (normal) directory @MODULE_DIRECTORY@/_version_, but in a staging area, you can specify a _basedir_ which is prepended to the directory name. This _basedir_ is - stripped from the resulting modules.dep file, so it is ready to be moved - into the normal location. Use this option if you are a distribution - vendor who needs to pre-generate the meta-data files rather than running - depmod again later. + stripped from the resulting *modules.dep* file, so it is ready to be + moved into the normal location. Use this option if you are a + distribution vendor who needs to pre-generate the meta-data files rather + than running *depmod* again later. *-o* _outdir_, *--outdir* _outdir_ - Set the output directory where depmod will store any generated file. + Set the output directory where *depmod* will store any generated file. _ outdir_ serves as a root to that location, similar to how _basedir_ is used. Also this setting takes precedence and if used together with _basedir_ it will result in the input being that directory, but the output
@@ -75,11 +75,11 @@ rather than the current kernel version (as returned by *uname -r*). *-E*, *--symvers* When combined with the *-e* option, this reports any symbol versions supplied by modules that do not match with the symbol versions provided - by the kernel in its Module.symvers. This option is mutually + by the kernel in its _Module.symvers_. This option is mutually incompatible with *-F*. *-F*, *--filesyms* _System.map_ - Supplied with the System.map produced when the kernel was built, this + Supplied with the _System.map_ produced when the kernel was built, this allows the *-e* option to report unresolved symbols. This option is mutually incompatible with *-E*.
@@ -87,7 +87,7 @@ rather than the current kernel version (as returned by *uname -r*). Print the help message and exit. *-n*, *--show*, *--dry-run* - This sends the resulting modules.dep and the various map files to + This sends the resulting *modules.dep* and the various map files to standard output rather than writing them into the module directory. *-P*
man/kmod.8.scd +1 -1
@@ -6,7 +6,7 @@ kmod - Program to manage Linux Kernel modules # SYNOPSIS -*kmod* [*OPTIONS*...] [_COMMAND_] [*COMMAND_OPTIONS*...] +*kmod* [*OPTIONS...*] [_COMMAND_] [*COMMAND_OPTIONS...*] # DESCRIPTION
man/modinfo.8.scd +4 -4
@@ -29,14 +29,14 @@ architecture. # OPTIONS *-V*, *--version* - Print the modinfo version. + Print the *modinfo* version. *-F*, *--field* Only print this field value, one per line. This is most useful for scripts. Field names are case-insensitive. Common fields (which may not be in every module) include author, description, license, parm, depends, and alias. There are often multiple parm, alias and depends fields. The - special field filename lists the filename of the module. + special _field_ filename lists the filename of the module. *-b* _basedir_, *--basedir* _basedir_ Root directory for modules, / by default.
@@ -50,9 +50,9 @@ architecture. image prior to booting. *-0*, *--null* - Use the ASCII zero character to separate field values, instead of a new + Use the ASCII zero character to separate _field_ values, instead of a new line. This is useful for scripts, since a new line can theoretically - appear inside a field. + appear inside a _field_. *-a* *--author*, *-d* *--description*, *-l* *--license*, *-p* *--parameters*, *-n* *--filename*
man/modprobe.8.scd +6 -6
@@ -9,11 +9,11 @@ modprobe - Add and remove modules from the Linux Kernel *modprobe* [*-v*] [*-V*] [*-C *_config-file_] [*-n*] [*-i*] [*-q*] [*-b*] [_modulename_] \ \ \ \ \ \ \ \ \ \[_module parameters_...] -*modprobe* [-r] [*-v*] [*-n*] [*-i*] [_modulename_...] +*modprobe* [*-r*] [*-v*] [*-n*] [*-i*] [_modulename_...] -*modprobe* [-c] +*modprobe* [*-c*] -*modprobe* [--dump-modversions] [_filename_] +*modprobe* [*--dump-modversions*] [_filename_] # DESCRIPTION
@@ -42,7 +42,7 @@ If any arguments are given after the _modulename_, they are passed to the kernel When loading modules, _modulename_ can also be a path to the module. If the path is relative, it must explicitly start with "./". Note that this may fail when -using a path to a module with dependencies not matching the installed depmod +using a path to a module with dependencies not matching the installed *depmod* database. # OPTIONS
@@ -78,7 +78,7 @@ database. module which is already present or to remove a module which isn't present. This is ideal for simple scripts; however, more complicated scripts often want to know whether *modprobe* really did something: this - option makes modprobe fail in the case that it actually didn't do + option makes *modprobe* fail in the case that it actually didn't do anything. *--force-vermagic*
@@ -97,7 +97,7 @@ database. detailing the versions of every interfaced used by (or supplied by) the module is created. If a module fails to load and the kernel complains that the module disagrees about a version of some interface, you can use - "--force-modversion" to remove the version information altogether. + *--force-modversion* to remove the version information altogether. Naturally, this check is there for your protection, so using this option is dangerous unless you know what you're doing.
man/modules.dep.5.scd +6 -5
@@ -12,13 +12,14 @@ modules.dep, modules.dep.bin - Module dependency information # DESCRIPTION -modules.dep.bin is a binary file generated by *depmod* listing the dependencies -for every module in the directories under @MODULE_DIRECTORY@/_version_. It is -used by kmod tools such as *modprobe* and libkmod. +*modules.dep.bin* is a binary file generated by *depmod* listing the +dependencies for every module in the directories under +@MODULE_DIRECTORY@/_version_. It is used by *kmod* tools such as *modprobe* and +libkmod. Its text counterpart is located in the same directory with the name -modules.dep. The text version is maintained only for easy of reading by humans -and is in no way used by any kmod tool. +*modules.dep*. The text version is maintained only for easy of reading by humans +and is in no way used by any *kmod* tool. These files are not intended for editing or use by any additional utilities as their format is subject to change in the future. You should use the *modinfo*(8)
man/rmmod.8.scd +1 -1
@@ -29,7 +29,7 @@ is provided) from the kernel. Most users will want to use *modprobe*(8) with the *-s*, *--syslog* Send errors to syslog instead of standard error. -*-V --version* +*-V*, *--version* Show version of program and exit. # COPYRIGHT
Signature · 1 line
2.45.2
PATCH v2 2/17 man: white space fixes
In reply to Emil VelikovThese were present in the original xml files and I opted to keep them separate fix to make the transition/comparison easier.
---
v2: drop unrelated bold annotation - move to previous patch
--- man/depmod.8.scd | 2 +- man/depmod.d.5.scd | 2 +- man/modprobe.8.scd | 8 ++++---- man/modprobe.d.5.scd | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)
man/depmod.8.scd +1 -1
@@ -55,7 +55,7 @@ rather than the current kernel version (as returned by *uname -r*). *-o* _outdir_, *--outdir* _outdir_ Set the output directory where *depmod* will store any generated file. - _ outdir_ serves as a root to that location, similar to how _basedir_ is + _outdir_ serves as a root to that location, similar to how _basedir_ is used. Also this setting takes precedence and if used together with _basedir_ it will result in the input being that directory, but the output being the one set by _outdir_.
man/depmod.d.5.scd +1 -1
@@ -50,7 +50,7 @@ override _modulename_ _kernelversion_ _modulesubdirectory_ This command allows you to override which version of a specific module will be used when more than one module sharing the same name is processed by the *depmod* command. It is possible to specify one kernel - or all kernels using the \* wildcard. _ modulesubdirectory_ is the name + or all kernels using the \* wildcard. _modulesubdirectory_ is the name of the subdirectory under @MODULE_DIRECTORY@ (or other module location) where the target module is installed.
man/modprobe.8.scd +4 -4
@@ -6,7 +6,7 @@ modprobe - Add and remove modules from the Linux Kernel # SYNOPSIS -*modprobe* [*-v*] [*-V*] [*-C *_config-file_] [*-n*] [*-i*] [*-q*] [*-b*] [_modulename_] +*modprobe* [*-v*] [*-V*] [*-C* _config-file_] [*-n*] [*-i*] [*-q*] [*-b*] [_modulename_] \ \ \ \ \ \ \ \ \ \[_module parameters_...] *modprobe* [*-r*] [*-v*] [*-n*] [*-i*] [_modulename_...]
@@ -19,10 +19,10 @@ modprobe - Add and remove modules from the Linux Kernel *modprobe* intelligently adds or removes a module from the Linux kernel: note that for convenience, there is no difference between \_ and - in module names -(automatic underscore conversion is performed). * modprobe* looks in the module +(automatic underscore conversion is performed). *modprobe* looks in the module directory @DISTCONFDIR@/`uname -r` for all the modules and other files, except for the optional configuration files in the /etc/modprobe.d directory (see -*modprobe.d*(5)). * modprobe* will also use module options specified on the +*modprobe.d*(5)). *modprobe* will also use module options specified on the kernel command line in the form of <module>.<option> and blacklists in the form of modprobe.blacklist=<module>.
@@ -167,7 +167,7 @@ database. itself. This produces a (possibly empty) set of module filenames, one per line, each starting with "insmod" and is typically used by distributions to determine which modules to include when generating - initrd/initramfs images. * Install* commands which apply are shown + initrd/initramfs images. *Install* commands which apply are shown prefixed by "install". It does not run any of the install commands. Note that *modinfo*(8) can be used to extract dependencies of a module from the module itself, but knows nothing of aliases or install commands.
man/modprobe.d.5.scd +2 -2
@@ -94,7 +94,7 @@ install _modulename_ _command..._ options _modulename_ _option..._ This command allows you to add options to the module _modulename_ (which might be an alias) every time it is inserted into the kernel: whether - directly (using *modprobe* _ modulename_) or because the module being + directly (using *modprobe* _modulename_) or because the module being inserted depends on this module. All options are added together: they can come from an *option* for the
@@ -106,7 +106,7 @@ remove _modulename_ _command..._ softdep _modulename_ pre: _modules..._ post: _modules..._ The *softdep* command allows you to specify soft, or optional, module - dependencies. _ modulename_ can be used without these optional modules + dependencies. _modulename_ can be used without these optional modules installed, but usually with some features missing. For example, a driver for a storage HBA might require another module be loaded in order to use management features.
Signature · 1 line
2.45.2
PATCH v2 3/17 man: misc punctuation fixes
In reply to Emil VelikovSome commas and a full stop was missing ;-)
--- man/depmod.d.5.scd | 2 +- man/kmod.8.scd | 4 ++-- man/lsmod.8.scd | 2 +- man/modprobe.8.scd | 2 +- man/rmmod.8.scd | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
man/depmod.d.5.scd +1 -1
@@ -73,7 +73,7 @@ exclude _excludedir_ This specifies the trailing directories that will be excluded during the search for kernel modules. - The _excludedir_ is the trailing directory to exclude + The _excludedir_ is the trailing directory to exclude. # COPYRIGHT
man/kmod.8.scd +2 -2
@@ -15,10 +15,10 @@ Linux Kernel modules. Most users will only run it using its other names. # OPTIONS -*-V --version* +*-V*, *--version* Show the program version and exit. -*-h --help* +*-h*, *--help* Show the help message. # COMMANDS
man/lsmod.8.scd +1 -1
@@ -19,7 +19,7 @@ Maintained by Jon Masters and others. # SEE ALSO -*insmod*(8), *modprobe*(8), *modinfo*(8) *depmod*(8) +*insmod*(8), *modprobe*(8), *modinfo*(8), *depmod*(8) # AUTHORS
man/modprobe.8.scd +1 -1
@@ -202,7 +202,7 @@ Maintained by Jon Masters and others. # SEE ALSO -*modprobe.d*(5), *insmod*(8), *rmmod*(8), *lsmod*(8), *modinfo*(8) *depmod*(8) +*modprobe.d*(5), *insmod*(8), *rmmod*(8), *lsmod*(8), *modinfo*(8), *depmod*(8) # AUTHORS
man/rmmod.8.scd +1 -1
@@ -39,7 +39,7 @@ Maintained by Jon Masters and others. # SEE ALSO -*modprobe*(8), *insmod*(8), *lsmod*(8), *modinfo*(8) *depmod*(8) +*modprobe*(8), *insmod*(8), *lsmod*(8), *modinfo*(8), *depmod*(8) # AUTHORS
Signature · 1 line
2.45.2
PATCH v2 4/17 man: some options take an argument, mention that
In reply to Emil VelikovFor example modinfo -F requires the field name, although the documentation was missing the "field".
Similarly modprobe has omissions, so let's fix those as well.
---
There are two different styles across the man pages:
-s, --short foo
-s foo, --short foo
A proposal to resolve these comes with a later patch in this series.
--- man/depmod.8.scd | 2 +- man/modinfo.8.scd | 4 ++-- man/modprobe.8.scd | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-)
man/depmod.8.scd +1 -1
@@ -72,7 +72,7 @@ rather than the current kernel version (as returned by *uname -r*). assumption can break especially when additionally updated third party drivers are not correctly installed or were built incorrectly. -*-E*, *--symvers* +*-E*, *--symvers* _Module.symvers_ When combined with the *-e* option, this reports any symbol versions supplied by modules that do not match with the symbol versions provided by the kernel in its _Module.symvers_. This option is mutually
man/modinfo.8.scd +2 -2
@@ -31,8 +31,8 @@ architecture. *-V*, *--version* Print the *modinfo* version. -*-F*, *--field* - Only print this field value, one per line. This is most useful for +*-F* _field_, *--field* _field_ + Only print this _field_ value, one per line. This is most useful for scripts. Field names are case-insensitive. Common fields (which may not be in every module) include author, description, license, parm, depends, and alias. There are often multiple parm, alias and depends fields. The
man/modprobe.8.scd +3 -3
@@ -55,7 +55,7 @@ database. configuration files (if any) to module names as well. It is usually used by *udev*(7). -*-C*, *--config* +*-C* _directory_, *--config* _directory_ This option overrides the default configuration directory (/etc/modprobe.d).
@@ -151,14 +151,14 @@ database. require it. Your distribution kernel may not have been built to support removal of modules at all. -*-w*, *--wait=*TIMEOUT_MSEC +*-w* _TIMEOUT_MSEC_, *--wait* _TIMEOUT_MSEC_ This option causes *modprobe -r *to continue trying to remove a module if it fails due to the module being busy, i.e. its refcount is not 0 at the time the call is made. Modprobe tries to remove the module with an incremental sleep time between each tentative up until the maximum wait time in milliseconds passed in this option. -*-S*, *--set-version* +*-S* _version_, *--set-version* _version_ Set the kernel version, rather than using *uname*(2) to decide on the kernel version (which dictates where to find the modules).
Signature · 1 line
2.45.2
PATCH v2 5/17 man: couple of grammar/language fixes
In reply to Emil Velikov--- man/modprobe.8.scd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
man/modprobe.8.scd +2 -2
@@ -101,7 +101,7 @@ database. Naturally, this check is there for your protection, so using this option is dangerous unless you know what you're doing. - This applies any modules inserted: both the module (or alias) on the + This applies to any modules inserted: both the module (or alias) on the command line and any modules on which it depends. *-f*, *--force*
@@ -112,7 +112,7 @@ database. know what you are doing. This applies to any modules inserted: both the module (or alias) on the - command line and any modules it on which it depends. + command line and any modules on which it depends. *-i*, *--ignore-install*, *--ignore-remove* This option causes *modprobe* to ignore *install* and *remove* commands
Signature · 1 line
2.45.2
PATCH v2 6/17 man: stop removing DISTCONFDIR lines
In reply to Emil VelikovPresently when DISTCONFDIR is identical to /lib we remove the whole line, since the man pages already have an /lib instance.
At the same time, there are in-text DISTCONFDIR entries, and removing the whole line outright breaks the documentation.
Drop the removal line - worst case scenario we get a duplicate entry in the synopsis.
--- man/Makefile.am | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
man/Makefile.am +2 -5
@@ -14,11 +14,8 @@ EXTRA_DIST = $(MAN5:%.5=%.5.scd) $(MAN8:%.8=%.8.scd) CLEANFILES = $(filter-out $(MAN_STUB), $(dist_man_MANS)) define generate_manpage - $(AM_V_SCDOC)if [ '$(distconfdir)' != '/lib' ] ; then \ - sed -e 's|@DISTCONFDIR@|$(distconfdir)|g' $< ; \ - else \ - sed -e '/@DISTCONFDIR@/d' $< ; \ - fi | \ + $(AM_V_SCDOC)cat $< | \ + sed -e 's|@DISTCONFDIR@|$(distconfdir)|g' | \ sed -e 's|@MODULE_DIRECTORY@|$(module_directory)|g' | \ $(SCDOC) > $@ endef
Signature · 1 line
2.45.2
PATCH v2 7/17 man: depmod.d: document the config file order handling
In reply to Emil VelikovThe depmod.d configuration order/handling aligns with existing tools such as sysctl.d, even though there is no mention in the manual.
Reorder the list in SYNOPSIS and add a bit of verbiage describing things.
Section is inspired by sysctl.d(5) and sysctl(8).
---
v2: Reword as per Lucas' suggestion.
--- man/Makefile.am | 1 + man/depmod.d.5.scd | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-)
man/Makefile.am +1 -0
@@ -15,6 +15,7 @@ CLEANFILES = $(filter-out $(MAN_STUB), $(dist_man_MANS)) define generate_manpage $(AM_V_SCDOC)cat $< | \ + sed -e 's|@SYSCONFDIR@|$(sysconfdir)|g' | \ sed -e 's|@DISTCONFDIR@|$(distconfdir)|g' | \ sed -e 's|@MODULE_DIRECTORY@|$(module_directory)|g' | \ $(SCDOC) > $@
man/depmod.d.5.scd +16 -4
@@ -6,15 +6,15 @@ depmod.d - Configuration directory for depmod # SYNOPSIS -/lib/depmod.d/\*.conf +@SYSCONFDIR@/depmod.d/\*.conf -@DISTCONFDIR@/depmod.d/\*.conf +/run/depmod.d/\*.conf /usr/local/lib/depmod.d/\*.conf -/run/depmod.d/\*.conf +@DISTCONFDIR@/depmod.d/\*.conf -/etc/depmod.d/\*.conf +/lib/depmod.d/\*.conf # DESCRIPTION
@@ -29,6 +29,18 @@ lines and lines starting with '#' ignored (useful for adding comments). A '\\' at the end of a line causes it to continue on the next line, which makes the files a bit neater. +# CONFIGURATION DIRECTORIES AND PRECEDENCE + +Configuration files are read from directories in listed in SYNOPSYS in that +order of precedence. Once a file of a given filename is loaded, any file of the +same name in subsequent directories is ignored. + +All configuration files are sorted in lexicographic order, regardless of the +directory they reside in. Configuration files can either be completely replaced +(by having a new configuration file with the same name in a directory of higher +priority) or partially replaced (by having a configuration file that is ordered +later). + # COMMANDS search _subdirectory..._
Signature · 1 line
2.45.2
PATCH v2 8/17 man: depmod.d: factor out a CONFIGURATION FORMAT section
In reply to Emil VelikovKeep the description neat and tidy.
--- man/depmod.d.5.scd | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
man/depmod.d.5.scd +7 -4
@@ -24,10 +24,13 @@ built-in kernel modules are complemented by custom built versions of the same and the user wishes to affect the priority of processing in order to override the module version supplied by the kernel. -The format of files under depmod.d is simple: one command per line, with blank -lines and lines starting with '#' ignored (useful for adding comments). A '\\' -at the end of a line causes it to continue on the next line, which makes the -files a bit neater. +# CONFIGURATION FORMAT + +The configuration files contain one command per line, with blank lines and lines +starting with '#' ignored (useful for adding comments). A '\\' at the end of a +line causes it to continue on the next line, which makes the files a bit neater. + +See the COMMANDS section below for more. # CONFIGURATION DIRECTORIES AND PRECEDENCE
Signature · 1 line
2.45.2
PATCH v2 9/17 man: depmod.d: rework the opening description sentence
In reply to Emil VelikovUse a slightly longer, more gradual introduction.
---
Lucas, I'm reading the first sentence and struggling a bit. What does the "global or per-module" refer to?
Thanks in advance o/
--- man/depmod.d.5.scd | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
man/depmod.d.5.scd +8 -5
@@ -18,11 +18,14 @@ depmod.d - Configuration directory for depmod # DESCRIPTION -The order in which modules are processed by the *depmod* command can be altered -on a global or per-module basis. This is typically useful in cases where -built-in kernel modules are complemented by custom built versions of the same -and the user wishes to affect the priority of processing in order to override -the module version supplied by the kernel. +On execution *depmod* reads the configuration files from the above location and +based on that it processes the available modules and their dependencies. For +example: one can change the search order, exclude folders, override specific +module's location and more. + +This is typically useful in cases where built-in kernel modules are complemented +by custom built versions of the same and the user wishes to affect the priority +of processing in order to override the module version supplied by the kernel. # CONFIGURATION FORMAT
Signature · 1 line
2.45.2
PATCH v2 10/17 man: depmod: remove hard-coded /etc/depmod.d references
In reply to Emil VelikovPoint the users to depmod.d(5) instead.
--- man/depmod.8.scd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
man/depmod.8.scd +2 -2
@@ -61,8 +61,8 @@ rather than the current kernel version (as returned by *uname -r*). being the one set by _outdir_. *-C*, *--config* _file_ _or_ _directory_ - This option overrides the default configuration directory at - /etc/depmod.d/. + This option overrides the default configuration files. See + *depmod.d*(5). *-e*, *--errsyms* When combined with the *-F* option, this reports any symbols which a
Signature · 1 line
2.45.2
PATCH v2 11/17 man: modprobe.d: document the config file order handling
In reply to Emil VelikovThe modprobe.d configuration order/handling aligns with existing tools such as sysctl.d, even though there is no mention in the manual.
Reorder the list in SYNOPSIS and add a bit of verbiage describing things.
Section is inspired by sysctl.d(5) and sysctl(8).
---
v2: Reword as per Lucas' suggestion.
--- man/modprobe.d.5.scd | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-)
man/modprobe.d.5.scd +20 -9
@@ -6,25 +6,24 @@ modprobe.d - Configuration directory for modprobe # SYNOPSIS -/lib/modprobe.d/\*.conf +@SYSCONFDIR@/modprobe.d/\*.conf -@DISTCONFDIR@/modprobe.d/\*.conf +/run/modprobe.d/\*.conf /usr/local/lib/modprobe.d/\*.conf -/run/modprobe.d/\*.conf +@DISTCONFDIR@/modprobe.d/\*.conf -/etc/modprobe.d/\*.conf +/lib/modprobe.d/\*.conf # DESCRIPTION Because the *modprobe* command can add or remove more than one module, due to modules having dependencies, we need a method of specifying what options are to -be used with those modules. All files underneath the /etc/modprobe.d directory -which end with the .conf extension specify those options as required. They can -also be used to create convenient aliases: alternate names for a module, or they -can override the normal *modprobe* behavior altogether for those with special -requirements (such as inserting more than one module). +be used with those modules. One can also use them to create convenient aliases: +alternate names for a module, or they can override the normal *modprobe* +behavior altogether for those with special requirements (such as inserting more +than one module). Note that module and alias names (like other module names) can have - or \_ in them: both are interchangeable throughout all the module commands as underscore
@@ -35,6 +34,18 @@ lines and lines starting with '#' ignored (useful for adding comments). A '\\' at the end of a line causes it to continue on the next line, which makes the file a bit neater. +# CONFIGURATION DIRECTORIES AND PRECEDENCE + +Configuration files are read from directories in listed in SYNOPSYS in that +order of precedence. Once a file of a given filename is loaded, any file of the +same name in subsequent directories is ignored. + +All configuration files are sorted in lexicographic order, regardless of the +directory they reside in. Configuration files can either be completely replaced +(by having a new configuration file with the same name in a directory of higher +priority) or partially replaced (by having a configuration file that is ordered +later). + # COMMANDS alias _wildcard_ _modulename_
Signature · 1 line
2.45.2
PATCH v2 12/17 man: modprobe.d: factor out a CONFIGURATION FORMAT section
In reply to Emil VelikovKeep the description neat and tidy.
--- man/modprobe.d.5.scd | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
man/modprobe.d.5.scd +7 -4
@@ -29,10 +29,13 @@ Note that module and alias names (like other module names) can have - or \_ in them: both are interchangeable throughout all the module commands as underscore conversion happens automatically. -The format of files under modprobe.d is simple: one command per line, with blank -lines and lines starting with '#' ignored (useful for adding comments). A '\\' -at the end of a line causes it to continue on the next line, which makes the -file a bit neater. +# CONFIGURATION FORMAT + +The configuration files contain one command per line, with blank lines and lines +starting with '#' ignored (useful for adding comments). A '\\' at the end of a +line causes it to continue on the next line, which makes the files a bit neater. + +See the COMMANDS section below for more. # CONFIGURATION DIRECTORIES AND PRECEDENCE
Signature · 1 line
2.45.2
PATCH v2 13/17 man: add few mentions about MODPROBE_OPTIONS
In reply to Emil VelikovThe environment variable may alter config file ordering, so mention it in the man page.
In addition, highlight that the format is intentionally undocumented since the use by third parties is discouraged.
---
v2: tweak (5) wording, add details to (8)
--- man/modprobe.8.scd | 8 ++++++-- man/modprobe.d.5.scd | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-)
man/modprobe.8.scd +6 -2
@@ -192,8 +192,12 @@ database. # ENVIRONMENT -The MODPROBE_OPTIONS environment variable can also be used to pass arguments to -*modprobe*. +The MODPROBE_OPTIONS environment variable can also be used to pass command line +arguments to *modprobe*. The format is intentionally left undocumented, since +the use by third-party tools and scripts is discouraged. + +The environment variable originates with the implementation of the install +rules. # COPYRIGHT
man/modprobe.d.5.scd +3 -0
@@ -49,6 +49,9 @@ directory they reside in. Configuration files can either be completely replaced priority) or partially replaced (by having a configuration file that is ordered later). +NOTE: The configuration directories may be altered via the MODPROBE_OPTIONS +environment variable. See the ENVIRONMENT section in *modprobe*(8). + # COMMANDS alias _wildcard_ _modulename_
Signature · 1 line
2.45.2
PATCH v2 14/17 man: modprobe: remove hard-coded /etc/modprobe.d references
In reply to Emil VelikovPoint the users to modprobe.d(5) instead.
--- man/modprobe.8.scd | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
man/modprobe.8.scd +5 -6
@@ -21,10 +21,9 @@ modprobe - Add and remove modules from the Linux Kernel that for convenience, there is no difference between \_ and - in module names (automatic underscore conversion is performed). *modprobe* looks in the module directory @DISTCONFDIR@/`uname -r` for all the modules and other files, except -for the optional configuration files in the /etc/modprobe.d directory (see -*modprobe.d*(5)). *modprobe* will also use module options specified on the -kernel command line in the form of <module>.<option> and blacklists in the form -of modprobe.blacklist=<module>. +for the optional configuration files (see *modprobe.d*(5)). *modprobe* will also +use module options specified on the kernel command line in the form of +<module>.<option> and blacklists in the form of modprobe.blacklist=<module>. Note that unlike in 2.4 series Linux kernels (which are not supported by this tool) this version of *modprobe* does not do anything to the module itself: the
@@ -56,8 +55,8 @@ database. by *udev*(7). *-C* _directory_, *--config* _directory_ - This option overrides the default configuration directory - (/etc/modprobe.d). + This option overrides the default configuration directory. See + *modprobe.d*(5). This option is passed through *install* or *remove* commands to other *modprobe* commands in the MODPROBE_OPTIONS environment variable.
Signature · 1 line
2.45.2
PATCH v2 15/17 man: remove the "Maintained by" references
In reply to Emil VelikovAt a glance through my system, around 2% of the man pages include such statement.
Looking through git log, Jon has been active in a while and presumably have moved on.
Most importantly the Copyright section isn't the best place to reference the maintainer/contact person.
---
Instead we can add a note in the authors section, pointing people to the ML/kernel.org/Github repo for when seeking contact.
Also should probably s/Developer/Maintainer/ for Lucas, who's been keeping the project afloat the last few decades ;-)
Lucas, what do you think?
--- man/insmod.8.scd | 1 - man/kmod.8.scd | 3 +-- man/lsmod.8.scd | 1 - man/modinfo.8.scd | 1 - man/modprobe.8.scd | 1 - man/modprobe.d.5.scd | 1 - man/modules.dep.5.scd | 1 - man/rmmod.8.scd | 1 - 8 files changed, 1 insertion(+), 9 deletions(-)
man/insmod.8.scd +0 -1
@@ -21,7 +21,6 @@ information about errors. # COPYRIGHT This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. -Maintained by Jon Masters and others. # SEE ALSO
man/kmod.8.scd +1 -2
@@ -35,8 +35,7 @@ Linux Kernel modules. Most users will only run it using its other names. # COPYRIGHT -This manual page originally Copyright 2014, Marco d'Itri. Maintained by Lucas De -Marchi and others. +This manual page originally Copyright 2014, Marco d'Itri. # SEE ALSO
man/lsmod.8.scd +0 -1
@@ -15,7 +15,6 @@ lsmod - Show the status of modules in the Linux Kernel # COPYRIGHT This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. -Maintained by Jon Masters and others. # SEE ALSO
man/modinfo.8.scd +0 -1
@@ -63,7 +63,6 @@ architecture. # COPYRIGHT This manual page originally Copyright 2003, Rusty Russell, IBM Corporation. -Maintained by Jon Masters and others. # SEE ALSO
man/modprobe.8.scd +0 -1
@@ -201,7 +201,6 @@ rules. # COPYRIGHT This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. -Maintained by Jon Masters and others. # SEE ALSO
man/modprobe.d.5.scd +0 -1
@@ -167,7 +167,6 @@ directly within the modules. # COPYRIGHT This manual page originally Copyright 2004, Rusty Russell, IBM Corporation. -Maintained by Jon Masters and others. # SEE ALSO
man/modules.dep.5.scd +0 -1
@@ -29,7 +29,6 @@ fashion rather than touching these files. # COPYRIGHT This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. -Maintained by Jon Masters and others. # SEE ALSO
man/rmmod.8.scd +0 -1
@@ -35,7 +35,6 @@ is provided) from the kernel. Most users will want to use *modprobe*(8) with the # COPYRIGHT This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. -Maintained by Jon Masters and others. # SEE ALSO
Signature · 1 line
2.45.2
PATCH v2 16/17 man: rework AUTHORS section
In reply to Emil VelikovReplace the partial listing with suggestion to check through git shortlog and git blame.
Explicitly spell out the current maintainer, alongside giving Jon attribution for the original project.
--- man/depmod.8.scd | 13 ++++++------- man/depmod.d.5.scd | 13 ++++++------- man/insmod.8.scd | 10 ++++++---- man/kmod.8.scd | 13 +++++++++++-- man/lsmod.8.scd | 10 ++++++---- man/modinfo.8.scd | 10 ++++++---- man/modprobe.8.scd | 13 ++++++------- man/modprobe.d.5.scd | 13 ++++++------- man/modules.dep.5.scd | 10 ++++++---- man/rmmod.8.scd | 10 ++++++---- 10 files changed, 65 insertions(+), 50 deletions(-)
man/depmod.8.scd +6 -7
@@ -116,11 +116,10 @@ Portions Copyright Jon Masters, and others. # AUTHORS -*Jon Masters* <[email protected]> - Developer +Numerous contributions have come from the linux-modules mailing list +<[email protected]> and Github. If you have a clone of kmod.git +itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the +authors for specific parts of the project. -*Robby Workman* <[email protected]> - Developer - -*Lucas De Marchi* <[email protected]> - Developer +*Lucas De Marchi* <[email protected]> is the current maintainer of the +project.
man/depmod.d.5.scd +6 -7
@@ -103,11 +103,10 @@ This manual page Copyright 2006-2010, Jon Masters, Red Hat, Inc. # AUTHORS -*Jon Masters* <[email protected]> - Developer +Numerous contributions have come from the linux-modules mailing list +<[email protected]> and Github. If you have a clone of kmod.git +itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the +authors for specific parts of the project. -*Robby Workman* <[email protected]> - Developer - -*Lucas De Marchi* <[email protected]> - Developer +*Lucas De Marchi* <[email protected]> is the current maintainer of the +project.
man/insmod.8.scd +6 -4
@@ -28,8 +28,10 @@ This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. # AUTHORS -*Jon Masters* <[email protected]> - Developer +Numerous contributions have come from the linux-modules mailing list +<[email protected]> and Github. If you have a clone of kmod.git +itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the +authors for specific parts of the project. -*Lucas De Marchi* <[email protected]> - Developer +*Lucas De Marchi* <[email protected]> is the current maintainer of the +project.
man/kmod.8.scd +11 -2
@@ -43,5 +43,14 @@ This manual page originally Copyright 2014, Marco d'Itri. # AUTHOR -*Lucas De Marchi* <[email protected]> - Developer +*kmod* project was started by Lucas De Marchi as a drop-in replacement to +module-init-tools that was maintained by Jon Masters, adding a library (libkmod) +and additional features. + +Numerous contributions have come from the linux-modules mailing list +<[email protected]> and Github. If you have a clone of kmod.git +itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the +authors for specific parts of the project. + +*Lucas De Marchi* <[email protected]> is the current maintainer of the +project.
man/lsmod.8.scd +6 -4
@@ -22,8 +22,10 @@ This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. # AUTHORS -*Jon Masters* <[email protected]> - Developer +Numerous contributions have come from the linux-modules mailing list +<[email protected]> and Github. If you have a clone of kmod.git +itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the +authors for specific parts of the project. -*Lucas De Marchi* <[email protected]> - Developer +*Lucas De Marchi* <[email protected]> is the current maintainer of the +project.
man/modinfo.8.scd +6 -4
@@ -70,8 +70,10 @@ This manual page originally Copyright 2003, Rusty Russell, IBM Corporation. # AUTHORS -*Jon Masters* <[email protected]> - Developer +Numerous contributions have come from the linux-modules mailing list +<[email protected]> and Github. If you have a clone of kmod.git +itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the +authors for specific parts of the project. -*Lucas De Marchi* <[email protected]> - Developer +*Lucas De Marchi* <[email protected]> is the current maintainer of the +project.
man/modprobe.8.scd +6 -7
@@ -208,11 +208,10 @@ This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. # AUTHORS -*Jon Masters* <[email protected]> - Developer +Numerous contributions have come from the linux-modules mailing list +<[email protected]> and Github. If you have a clone of kmod.git +itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the +authors for specific parts of the project. -*Robby Workman* <[email protected]> - Developer - -*Lucas De Marchi* <[email protected]> - Developer +*Lucas De Marchi* <[email protected]> is the current maintainer of the +project.
man/modprobe.d.5.scd +6 -7
@@ -174,11 +174,10 @@ This manual page originally Copyright 2004, Rusty Russell, IBM Corporation. # AUTHORS -*Jon Masters* <[email protected]> - Developer +Numerous contributions have come from the linux-modules mailing list +<[email protected]> and Github. If you have a clone of kmod.git +itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the +authors for specific parts of the project. -*Robby Workman* <[email protected]> - Developer - -*Lucas De Marchi* <[email protected]> - Developer +*Lucas De Marchi* <[email protected]> is the current maintainer of the +project.
man/modules.dep.5.scd +6 -4
@@ -36,8 +36,10 @@ This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. # AUTHORS -*Jon Masters* <[email protected]> - Developer +Numerous contributions have come from the linux-modules mailing list +<[email protected]> and Github. If you have a clone of kmod.git +itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the +authors for specific parts of the project. -*Lucas De Marchi* <[email protected]> - Developer +*Lucas De Marchi* <[email protected]> is the current maintainer of the +project.
man/rmmod.8.scd +6 -4
@@ -42,8 +42,10 @@ This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. # AUTHORS -*Jon Masters* <[email protected]> - Developer +Numerous contributions have come from the linux-modules mailing list +<[email protected]> and Github. If you have a clone of kmod.git +itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the +authors for specific parts of the project. -*Lucas De Marchi* <[email protected]> - Developer +*Lucas De Marchi* <[email protected]> is the current maintainer of the +project.
Signature · 1 line
2.45.2
PATCH v2 17/17 man: list options one per line
In reply to Emil VelikovSomewhat inspired by my selfish use of VIM as man pager. Namely, when there are multiple options on the same line, only the first one gets properly rendered.
A good bonus point is that very long instances, like modinfo's legacy "--author, --description ..." look a bit neater now.
With this is also more consistently handle short/long options which take an argument.
--- man/depmod.8.scd | 37 +++++++++++++++++++++++++------------ man/kmod.8.scd | 6 ++++-- man/modinfo.8.scd | 17 ++++++++++++----- man/modprobe.8.scd | 50 ++++++++++++++++++++++++++++++++++---------------- man/rmmod.8.scd | 12 ++++++++---- 5 files changed, 83 insertions(+), 39 deletions(-)
man/depmod.8.scd +25 -12
@@ -35,16 +35,19 @@ rather than the current kernel version (as returned by *uname -r*). # OPTIONS -*-a*, *--all* +*-a* +*--all* Probe all modules. This option is enabled by default if no file names are given in the command-line. -*-A*, *--quick* +*-A* +*--quick* This option scans to see if any modules are newer than the *modules.dep* file before any work is done: if not, it silently exits rather than regenerating the files. -*-b* _basedir_, *--basedir* _basedir_ +*-b* _basedir_ +*--basedir* _basedir_ If your modules are not currently in the (normal) directory @MODULE_DIRECTORY@/_version_, but in a staging area, you can specify a _basedir_ which is prepended to the directory name. This _basedir_ is
@@ -53,18 +56,21 @@ rather than the current kernel version (as returned by *uname -r*). distribution vendor who needs to pre-generate the meta-data files rather than running *depmod* again later. -*-o* _outdir_, *--outdir* _outdir_ +*-o* _outdir_ +*--outdir* _outdir_ Set the output directory where *depmod* will store any generated file. _outdir_ serves as a root to that location, similar to how _basedir_ is used. Also this setting takes precedence and if used together with _basedir_ it will result in the input being that directory, but the output being the one set by _outdir_. -*-C*, *--config* _file_ _or_ _directory_ +*-C* _file_ _or_ _directory_ +*--config* _file_ _or_ _directory_ This option overrides the default configuration files. See *depmod.d*(5). -*-e*, *--errsyms* +*-e* +*--errsyms* When combined with the *-F* option, this reports any symbols which a module needs which are not supplied by other modules or the kernel. Normally, any symbols not provided by modules are assumed to be provided
@@ -72,21 +78,26 @@ rather than the current kernel version (as returned by *uname -r*). assumption can break especially when additionally updated third party drivers are not correctly installed or were built incorrectly. -*-E*, *--symvers* _Module.symvers_ +*-E* _Module.symvers_ +*--symvers* _Module.symvers_ When combined with the *-e* option, this reports any symbol versions supplied by modules that do not match with the symbol versions provided by the kernel in its _Module.symvers_. This option is mutually incompatible with *-F*. -*-F*, *--filesyms* _System.map_ +*-F* _System.map_ +*--filesyms* _System.map_ Supplied with the _System.map_ produced when the kernel was built, this allows the *-e* option to report unresolved symbols. This option is mutually incompatible with *-E*. -*-h*, *--help* +*-h* +*--help* Print the help message and exit. -*-n*, *--show*, *--dry-run* +*-n* +*--show* +*--dry-run* This sends the resulting *modules.dep* and the various map files to standard output rather than writing them into the module directory.
@@ -94,11 +105,13 @@ rather than the current kernel version (as returned by *uname -r*). Some architectures prefix symbols with an extraneous character. This specifies a prefix character (for example '\_') to ignore. -*-v*, *--verbose* +*-v* +*--verbose* In verbose mode, *depmod* will print (to stdout) all the symbols each module depends on and the module's file name which provides that symbol. -*-V*, *--version* +*-V* +*--version* Show version of program and exit. See below for caveats when run on older kernels.
man/kmod.8.scd +4 -2
@@ -15,10 +15,12 @@ Linux Kernel modules. Most users will only run it using its other names. # OPTIONS -*-V*, *--version* +*-V* +*--version* Show the program version and exit. -*-h*, *--help* +*-h* +*--help* Show the help message. # COMMANDS
man/modinfo.8.scd +12 -5
@@ -28,17 +28,20 @@ architecture. # OPTIONS -*-V*, *--version* +*-V* +*--version* Print the *modinfo* version. -*-F* _field_, *--field* _field_ +*-F* _field_ +*--field* _field_ Only print this _field_ value, one per line. This is most useful for scripts. Field names are case-insensitive. Common fields (which may not be in every module) include author, description, license, parm, depends, and alias. There are often multiple parm, alias and depends fields. The special _field_ filename lists the filename of the module. -*-b* _basedir_, *--basedir* _basedir_ +*-b* _basedir_ +*--basedir* _basedir_ Root directory for modules, / by default. *-k* _kernel_
@@ -49,12 +52,16 @@ architecture. modules in a new kernel for which you must make an initrd/initramfs image prior to booting. -*-0*, *--null* +*-0* +*--null* Use the ASCII zero character to separate _field_ values, instead of a new line. This is useful for scripts, since a new line can theoretically appear inside a _field_. -*-a* *--author*, *-d* *--description*, *-l* *--license*, *-p* *--parameters*, +*-a* *--author* +*-d* *--description* +*-l* *--license* +*-p* *--parameters* *-n* *--filename* These are shortcuts for the *--field* flag's author, description, license, parm and filename arguments, to ease the transition from the
man/modprobe.8.scd +34 -16
132 lines not on this page · raw message
man/rmmod.8.scd +8 -4
@@ -16,20 +16,24 @@ is provided) from the kernel. Most users will want to use *modprobe*(8) with the # OPTIONS -*-v*, *--verbose* +*-v* +*--verbose* Print messages about what the program is doing. Usually *rmmod* prints messages only if something goes wrong. -*-f*, *--force* +*-f* +*--force* This option can be extremely dangerous: it has no effect unless CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was compiled. With this option, you can remove modules which are being used, or which are not designed to be removed, or have been marked as unsafe (see *lsmod*(8)). -*-s*, *--syslog* +*-s* +*--syslog* Send errors to syslog instead of standard error. -*-V*, *--version* +*-V* +*--version* Show version of program and exit. # COPYRIGHT
Signature · 1 line
2.45.2
Re: [PATCH kmod v2 09/17] man: depmod.d: rework the opening description sentence
In reply to Emil VelikovQuoted 8 lines · On Mon, Jul 08, 2024 at 02:43:17PM GMT, Emil Velikov via B4 Relay wrote:
From: Emil Velikov <[email protected]>
Use a slightly longer, more gradual introduction.
Signed-off-by Emil Velikov <[email protected]>---
Lucas, I'm reading the first sentence and struggling a bit. What does the "global or per-module" refer to?
I have no idea :). Digging the history, this comes from module-init-tools and it was already there in its first ever commit:
commit 9ba2d09c2261c04fa72dcf614497b9f622fada6c
Author: Jonathan Masters <[email protected]> Date: Fri Dec 8 05:01:05 2006 -0500
Begin tracking post-3.3-pre3 development with git.
Thanks to Luiz Fernando N. Capitulino for his mail, suggesting that it might be really good to begin tracking development with a proper SCM. This is especially important now that we're trying to actively encourage greater involvement in development once more. I'm looking for more patches and git trees to merge!
...
doc/depmod.conf.sgml:
...
<para>The order in which modules are processed by the
<command>depmod</command> command can be altered on a global or per-module basis. This is typically useful in cases where built-in kernel modules are complemented by custom built versions of the same and the user wishes to affect the priority of processing in order to override the module version supplied by the kernel.
Quoted 17 lines
Thanks in advance o/
---
man/depmod.d.5.scd | 13 ++++++++-----1 file changed, 8 insertions(+), 5 deletions(-)man/depmod.d.5.scd +0
-3@@ -18,11 +18,14 @@ depmod.d - Configuration directory for depmod # DESCRIPTION -The order in which modules are processed by the *depmod* command can be altered -on a global or per-module basis. This is typically useful in cases where -built-in kernel modules are complemented by custom built versions of the same
man/depmod.d.5.scd depmod.d - Configuration directory for depmod · line 28
Quoted 10 lines
man/depmod.d.5.scd +8
-2-and the user wishes to affect the priority of processing in order to override -the module version supplied by the kernel. +On execution *depmod* reads the configuration files from the above location and +based on that it processes the available modules and their dependencies. For +example: one can change the search order, exclude folders, override specific +module's location and more. + +This is typically useful in cases where built-in kernel modules are complemented +by custom built versions of the same and the user wishes to affect the priority +of processing in order to override the module version supplied by the kernel.
LGTM, thanks.
Lucas De Marchi
Quoted 8 lines
man/depmod.d.5.scd +0
-0# CONFIGURATION FORMATSignature · 1 line
2.45.2
Lucas De Marchi
AppliedQuoted 11 lines · Emil Velikov
Here is the remaining patches from my scdoc series, re-spinned with all (:fingers-crossed:) the comments addressed.
The series includes:
- patch 1-5 - trivial fixes as white space, punctuation, etc
- patch 6-14 - expand documentation around {depmod,modprobe}.d handling, remove open-coded .d and .conf references
- patch 15 - remove "maintained by" references
- patch 16 - NEW: replace all AUTHORS sections with suggested snippet
- patch 17 - list short and long options on separate lines
Quoted 1 line
[...]
Applied, thanks!
[01/17] man: add some extra bold/italic annotations
commit: 134bf30e7493ae50ad31ef5d3767174505eba4cb
[02/17] man: white space fixes
commit: f1e233c31edb7d45704d2c7e7563ca9e8891fb43
[03/17] man: misc punctuation fixes
commit: e971579bba7616cee3e13efa5ced7682fd395739
[04/17] man: some options take an argument, mention that
commit: 2b5c56c43026fba590aa866074964ae79d6f49ab
[05/17] man: couple of grammar/language fixes
commit: 6f80a0874bdbcee17c26750ae92a5bae52f0ae45
[06/17] man: stop removing DISTCONFDIR lines
commit: 52a9d424649cab905fbddd6013eca5fe9c89b40f
[07/17] man: depmod.d: document the config file order handling
commit: 12ca199bd771a5bff17d6ae73fc23be277ccbaf0
[08/17] man: depmod.d: factor out a CONFIGURATION FORMAT section
commit: 0682f1ed56a8f7c681798c720436b2ec3d028d4e
[09/17] man: depmod.d: rework the opening description sentence
commit: 7b19a71289198beac8fae9bcb8d5bc176edb21f2
[10/17] man: depmod: remove hard-coded /etc/depmod.d references
commit: e83e142ce7eb2130cbee16771129482fefc36478
[11/17] man: modprobe.d: document the config file order handling
commit: 11d09ac414bd706ea4a7bf923240655909195da4
[12/17] man: modprobe.d: factor out a CONFIGURATION FORMAT section
commit: e46b473a92c776c84f74e984dc05ffe0ac921a7a
[13/17] man: add few mentions about MODPROBE_OPTIONS
commit: 42d60a3267162a36ec6b6b39a7b91e5078b90979
[14/17] man: modprobe: remove hard-coded /etc/modprobe.d references
commit: 4ec655d249c804b5394d63f0f04bfe5c94ab7031
[15/17] man: remove the "Maintained by" references
commit: ff38d82edeb113b22381cf4d0439a041f64d12c7
[16/17] man: rework AUTHORS section
commit: 082617913f68b0363e5701e470f2b78786dd9aaa
[17/17] man: list options one per line
commit: e7626810fd0f34db2c205b86ff6ad6cf42794fa7Best regards,
Signature · 1 line
Lucas De Marchi <[email protected]>