]> git.ipfire.org Git - thirdparty/kmod.git/blame - README
libkmod-module: Fix return code for kmod_module_new_from_lookup()
[thirdparty/kmod.git] / README
CommitLineData
cb48c9b2 1kmod - Linux kernel module handling
91b44c77 2
1dd4ff56
LDM
3Information
4===========
5
6Mailing list:
7 linux-modules@vger.kernel.org (no subscription needed)
edc9d817 8 https://lore.kernel.org/linux-modules/
1dd4ff56
LDM
9
10Signed packages:
11 http://www.kernel.org/pub/linux/utils/kernel/kmod/
12
13Git:
14 git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
15 http://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
16 https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
17
18Gitweb:
19 http://git.kernel.org/?p=utils/kernel/kmod/kmod.git
63fd6307 20 https://github.com/kmod-project/kmod
1dd4ff56
LDM
21
22Irc:
23 #kmod on irc.freenode.org
24
25License:
26 LGPLv2.1+ for libkmod, testsuite and helper libraries
27 GPLv2+ for tools/*
28
29
91b44c77
GSB
30OVERVIEW
31========
32
cb48c9b2
LDM
33kmod is a set of tools to handle common tasks with Linux kernel modules like
34insert, remove, list, check properties, resolve dependencies and aliases.
91b44c77 35
cb48c9b2
LDM
36These tools are designed on top of libkmod, a library that is shipped with
37kmod. See libkmod/README for more details on this library and how to use it.
38The aim is to be compatible with tools, configurations and indexes from
39module-init-tools project.
dd420605
LDM
40
41Compilation and installation
42============================
43
44In order to compiler the source code you need following software packages:
45 - GCC compiler
46 - GNU C library
47
48Optional dependencies:
49 - ZLIB library
50 - LZMA library
51
52Typical configuration:
53 ./configure CFLAGS="-g -O2" --prefix=/usr \
54 --sysconfdir=/etc --libdir=/usr/lib
55
56Configure automatically searches for all required components and packages.
57
58To compile and install run:
59 make && make install
60
3bf8d4b0
LDM
61Hacking
62=======
63
028d4df3
LDM
64Run 'autogen.sh' script before configure. If you want to accept the recommended
65flags, you just need to run 'autogen.sh c'. Note that the recommended
4cce76eb 66flags require cython be installed to compile successfully.
3bf8d4b0 67
314719c5
LDM
68Make sure to read the CODING-STYLE file and the other READMEs: libkmod/README
69and testsuite/README.
3bf8d4b0 70
cd923111
LDM
71Compatibility with module-init-tools
72====================================
73
74kmod replaces module-init-tools, which is end-of-life. Most of its tools are
75rewritten on top of libkmod so it can be used as a drop in replacements.
76Somethings however were changed. Reasons vary from "the feature was already
77long deprecated on module-init-tools" to "it would be too much trouble to
78support it".
79
80There are several features that are being added in kmod, but we don't
81keep track of them here.
82
83modprobe
84--------
85
86* 'modprobe -l' was marked as deprecated and does not exist anymore
87
88* 'modprobe -t' is gone, together with 'modprobe -l'
89
90* modprobe doesn't parse configuration files with names not ending in
91 '.alias' or '.conf'. modprobe used to warn about these files.
92
93* modprobe doesn't parse 'config' and 'include' commands in configuration
94 files.
95
96* modprobe from m-i-t does not honour softdeps for install commands. E.g.:
97 config:
98
99 install bli "echo bli"
100 install bla "echo bla"
101 softdep bla pre: bli
102
103 With m-i-t, the output of 'modprobe --show-depends bla' will be:
104 install "echo bla"
105
106 While with kmod:
107 install "echo bli"
108 install "echo bla"
109
110* kmod doesn't dump the configuration as is in the config files. Instead it
111 dumps the configuration as it was parsed. Therefore, comments and file names
112 are not dumped, but on the good side we know what the exact configuration
113 kmod is using. We did this because if we only want to know the entire content
114 of configuration files, it's enough to use find(1) in modprobe.d directories
115
116depmod
117------
118
119* there's no 'depmod -m' option: legacy modules.*map files are gone
120
121lsmod
122-----
123
124* module-init-tools used /proc/modules to parse module info. kmod uses
125 /sys/module/*, but there's a fallback to /proc/modules if the latter isn't
126 available