diff options
author | Stephen Kitt <steve@sk2.org> | 2020-02-18 13:59:17 +0100 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2020-02-19 03:34:13 -0700 |
commit | 0317c5371e6a9b71a2e25b47013dd5c62d55d1a6 (patch) | |
tree | 975c9cd4db8d95da0704be704ef74314ea3dbac9 /Documentation/admin-guide/sysctl/kernel.rst | |
parent | a3cb66a508528e9082cba8303b4f31767e7743a2 (diff) | |
download | linux-0317c5371e6a9b71a2e25b47013dd5c62d55d1a6.tar.bz2 |
docs: merge debugging-modules.txt into sysctl/kernel.rst
This fits nicely in sysctl/kernel.rst, merge it (and rephrase it)
instead of linking to it.
Signed-off-by: Stephen Kitt <steve@sk2.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/admin-guide/sysctl/kernel.rst')
-rw-r--r-- | Documentation/admin-guide/sysctl/kernel.rst | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst index 4872610cc491..bb56ff25d947 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Documentation/admin-guide/sysctl/kernel.rst @@ -387,7 +387,19 @@ This flag controls the L2 cache of G3 processor boards. If modprobe ======== -See Documentation/debugging-modules.txt. +This gives the full path of the modprobe command which the kernel will +use to load modules. This can be used to debug module loading +requests:: + + echo '#! /bin/sh' > /tmp/modprobe + echo 'echo "$@" >> /tmp/modprobe.log' >> /tmp/modprobe + echo 'exec /sbin/modprobe "$@"' >> /tmp/modprobe + chmod a+x /tmp/modprobe + echo /tmp/modprobe > /proc/sys/kernel/modprobe + +This only applies when the *kernel* is requesting that the module be +loaded; it won't have any effect if the module is being loaded +explicitly using ``modprobe`` from userspace. modules_disabled |