[PATCH 2/3] Update depmod & modprobe upstream help text in comments

Kang-Che Sung explorer09 at gmail.com
Thu Feb 9 14:48:51 UTC 2017


No code changes.

Signed-off-by: Kang-Che Sung <explorer09 at gmail.com>
---
 modutils/modprobe-small.c | 38 +++++++++++++++++++++++---------------
 1 file changed, 23 insertions(+), 15 deletions(-)

diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 0ac39f66f..52765bc99 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -862,33 +862,39 @@ Usage: rmmod [-fhswvV] modulename ...
     should eventually fall to zero).
 
 # modprobe
-Usage: modprobe [-v] [-V] [-C config-file] [-n] [-i] [-q] [-b]
-    [-o <modname>] [ --dump-modversions ] <modname> [parameters...]
+Usage: modprobe [-v] [-V] [-C config-file] [-d <dirname> ] [-n] [-i] [-q] \
+    [-b] [-o <modname>] [ --dump-modversions ] <modname> [parameters...]
 modprobe -r [-n] [-i] [-v] <modulename> ...
 modprobe -l -t <dirname> [ -a <modulename> ...]
 
 # depmod --help
-depmod 3.4 -- part of module-init-tools
-depmod -[aA] [-n -e -v -q -V -r -u]
+depmod 3.13 -- part of module-init-tools
+depmod -[aA] [-n -e -v -q -V -r -u -w -m]
       [-b basedirectory] [forced_version]
-depmod [-n -e -v -q -r -u] [-F kernelsyms] module1.ko module2.ko ...
+depmod [-n -e -v -q -r -u -w] [-F kernelsyms] module1.ko module2.ko ...
 If no arguments (except options) are given, "depmod -a" is assumed.
 depmod will output a dependency list suitable for the modprobe utility.
 Options:
-    -a, --all           Probe all modules
-    -A, --quick         Only does the work if there's a new module
-    -n, --show          Write the dependency file on stdout only
-    -e, --errsyms       Report not supplied symbols
-    -V, --version       Print the release version
-    -v, --verbose       Enable verbose mode
-    -h, --help          Print this usage message
+    -a, --all            Probe all modules
+    -A, --quick          Only does the work if there's a new module
+    -e, --errsyms        Report not supplied symbols
+    -m, --map            Create the legacy map files
+    -n, --show           Write the dependency file on stdout only
+    -P, --symbol-prefix  Architecture symbol prefix
+    -V, --version        Print the release version
+    -v, --verbose        Enable verbose mode
+    -w, --warn           Warn on duplicates
+    -h, --help           Print this usage message
 The following options are useful for people managing distributions:
     -b basedirectory
     --basedir basedirectory
-                        Use an image of a module tree
+                         Use an image of a module tree.
     -F kernelsyms
     --filesyms kernelsyms
-                        Use the file instead of the current kernel symbols
+                         Use the file instead of the current kernel symbols.
+    -E Module.symvers
+    --symvers Module.symvers
+                         Use Module.symvers file to check symbol versions.
 */
 
 //usage:#if ENABLE_MODPROBE_SMALL
@@ -950,10 +956,12 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv)
 		 * -e: report any symbols which a module needs
 		 *  which are not supplied by other modules or the kernel
 		 * -F FILE: System.map (symbols for -e)
-		 * -q, -r, -u: noop?
+		 * -q, -r, -u: noop
 		 * Not supported:
 		 * -b BASEDIR: (TODO!) modules are in
 		 *  $BASEDIR/lib/modules/$VERSION
+		 * -m: create legacy "modules.*map" files (deprecated; in
+		 *  kmod's depmod, prints a warning message and continues)
 		 * -v: human readable deps to stdout
 		 * -V: version (don't want to support it - people may depend
 		 *  on it as an indicator of "standard" depmod)
-- 
2.11.0



More information about the busybox mailing list