[FE training-materials-updates] Module parameters: use more common example

Michael Opdenacker michael.opdenacker at free-electrons.com
Mon Dec 5 15:35:48 CET 2016

Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=f4934c63ddd74858b953c4789554a04c830540a6


commit f4934c63ddd74858b953c4789554a04c830540a6
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Mon Dec 5 15:25:01 2016 +0100

    Module parameters: use more common example
    - snd-intel doesn't seem to exist any more
    - usb-storage shows better that parameters are global
      settings for modules, not stuff that could be bound to
      a single device.
    - usb-storage.delay_use is also interesting to talk about
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


 .../sysdev-linux-intro-modules.tex                       | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/slides/sysdev-linux-intro-modules/sysdev-linux-intro-modules.tex b/slides/sysdev-linux-intro-modules/sysdev-linux-intro-modules.tex
index 205b4fc..d437e94 100644
--- a/slides/sysdev-linux-intro-modules/sysdev-linux-intro-modules.tex
+++ b/slides/sysdev-linux-intro-modules/sysdev-linux-intro-modules.tex
@@ -111,18 +111,20 @@ $ dmesg
   \frametitle{Passing parameters to modules}
   \item Find available parameters:\\
-    \code{modinfo snd-intel8x0m}
+    \code{modinfo usb-storage}
   \item Through \code{insmod}:\\
-    \code{sudo insmod ./snd-intel8x0m.ko index=-2}
+    \code{sudo insmod ./usb-storage.ko delay_use=0}
   \item Through \code{modprobe}:\\
     Set parameters in \code{/etc/modprobe.conf} or in any file in \code{/etc/modprobe.d/}:\\
-    \code{options snd-intel8x0m index=-2}
+    \code{options usb-storage delay_use=0}
   \item Through the kernel command line, when the driver is built statically into the kernel:\\
-    \code{snd-intel8x0m.index=-2}
+    \code{usb-storage.delay_use=0}
-    \item \code{snd-intel8x0m} is the {\em driver name}
-    \item \code{index} is the {\em driver parameter name}
-    \item \code{-2} is the {\em driver parameter value}
+    \item \code{usb-storage} is the {\em driver name}
+    \item \code{delay_use} is the {\em driver parameter name}. It
+      specifies a delay before accessing a USB storage device (useful for
+      rotating devices).
+    \item \code{0} is the {\em driver parameter value}

More information about the training-materials-updates mailing list