From 244220594f4915528805175a91ab80671182e02f Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Sun, 22 Jan 2012 16:03:11 +0000 Subject: Add chapter06/kmod.xml, missing from r9711. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9713 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/kmod.xml | 196 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 chapter06/kmod.xml (limited to 'chapter06') diff --git a/chapter06/kmod.xml b/chapter06/kmod.xml new file mode 100644 index 000000000..4e365f284 --- /dev/null +++ b/chapter06/kmod.xml @@ -0,0 +1,196 @@ + + + %general-entities; +]> + + + + + + kmod + &kmod-version; +
&kmod-url;
+
+ + Kmod-&kmod-version; + + + Kmod + + + + + + <para>The Kmod package contains libraries and utilities for loading kernel + modules</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&kmod-ch6-sbu;</seg> + <seg>&kmod-ch6-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of Kmod + + Prepare Kmod for compilation: + +liblzma_CFLAGS="-I/usr/include" liblzma_LIBS="-L/lib -llzma" \ + zlib_CFLAGS="-I/usr/include" zlib_LIBS="-L/lib -lz" ./configure \ + --prefix=/usr --bindir=/bin --libdir=/lib --sysconfdir=/etc --with-xz \ + --with-zlib + + + The meaning of the configure options: + + + lib* and --with-* + + These options enable Kmod to handle compressed kernel modules. + The shell variables are required in order for the xz and zlib headers + and libraries to be found in the absence of pkg-config. + + + + + + Compile the package: + +make + + To test the results, issue: + +./test/test-loaded + + Install the package, and create symlinks for compatibility with + Module-Init-Tools, the package that previously handled Linux kernel modules: + + +make install +for target in depmod insmod modinfo modprobe rmmod; do + ln -sv ../bin/kmod /sbin/$target +done +ln -sv kmod /bin/lsmod + + + + + Contents of Kmod + + + Installed programs + Installed libraries + + + depmod (link to kmod), insmod (link to kmod), kmod, kmod-nolib, + lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod), + and rmmod (link to kmod) + /lib/kmod.so + + + + + Short Descriptions + + + + + depmod + + Creates a dependency file based on the symbols it finds in the + existing set of modules; this dependency file is used by + modprobe to automatically load the required + modules + + depmod + + + + + + insmod + + Installs a loadable module in the running kernel + + insmod + + + + + + kmod + + Loads and unloads kernel modules + + kmod + + + + + + libkmod + + This library is used by other programs to load and unload kernel + modules + + libkmod + + + + + + lsmod + + Lists currently loaded modules + + lsmod + + + + + + modinfo + + Examines an object file associated with a kernel module and + displays any information that it can glean + + modinfo + + + + + + modprobe + + Uses a dependency file, created by + depmod, to automatically load relevant modules + + modprobe + + + + + + rmmod + + Unloads modules from the running kernel + + rmmod + + + + + + + + +
+ -- cgit v1.2.3-54-g00ecf