Skip to content

Commit

Permalink
docs: merge debugging-modules.txt into sysctl/kernel.rst
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Kitt authored and Jonathan Corbet committed Feb 19, 2020
1 parent a3cb66a commit 0317c53
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 23 deletions.
14 changes: 13 additions & 1 deletion Documentation/admin-guide/sysctl/kernel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 0 additions & 22 deletions Documentation/debugging-modules.txt

This file was deleted.

0 comments on commit 0317c53

Please sign in to comment.