|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| libkmod/ | | 03-May-2024 | - | 10,998 | 7,682 |
| m4/ | | 03-May-2024 | - | 363 | 323 |
| man/ | | 03-May-2024 | - | 1,979 | 1,878 |
| port-gnu/ | | 03-May-2024 | - | 3,872 | 2,872 |
| shared/ | | 03-May-2024 | - | 1,459 | 1,015 |
| shell-completion/bash/ | | 03-May-2024 | - | 104 | 86 |
| testsuite/ | | 03-May-2024 | - | 7,098 | 5,268 |
| tools/ | | 03-May-2024 | - | 6,302 | 4,979 |
| .gitignore | D | 03-May-2024 | 273 | 30 | 27 |
| .travis.yml | D | 03-May-2024 | 802 | 34 | 28 |
| Android.bp | D | 03-May-2024 | 3.1 KiB | 109 | 104 |
| CODING-STYLE | D | 03-May-2024 | 2.3 KiB | 70 | 56 |
| COPYING | D | 03-May-2024 | 25.8 KiB | 505 | 418 |
| METADATA | D | 03-May-2024 | 280 | 16 | 15 |
| MODULE_LICENSE_LGPL | D | 03-May-2024 | 0 | | |
| Makefile.am | D | 03-May-2024 | 17.4 KiB | 531 | 399 |
| NEWS | D | 03-May-2024 | 22.7 KiB | 677 | 520 |
| NOTICE | D | 03-May-2024 | 25.8 KiB | 505 | 418 |
| OWNERS | D | 03-May-2024 | 46 | 2 | 1 |
| README | D | 03-May-2024 | 3.7 KiB | 132 | 92 |
| README.md | D | 03-May-2024 | 253 | 6 | 3 |
| TODO | D | 03-May-2024 | 2.1 KiB | 62 | 46 |
| autogen.sh | D | 03-May-2024 | 1.8 KiB | 77 | 65 |
| configure.ac | D | 03-May-2024 | 10.8 KiB | 330 | 279 |
README
1kmod - Linux kernel module handling
2
3Information
4===========
5
6Build Status:
7 https://lucasdemarchi.semaphoreci.com/projects/kmod
8
9Mailing list:
10 linux-modules@vger.kernel.org (no subscription needed)
11 https://lore.kernel.org/linux-modules/
12
13Patchwork:
14 https://patchwork.kernel.org/project/linux-modules/
15
16Signed packages:
17 http://www.kernel.org/pub/linux/utils/kernel/kmod/
18
19Git:
20 git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
21 http://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
22 https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
23
24Gitweb:
25 http://git.kernel.org/?p=utils/kernel/kmod/kmod.git
26
27Irc:
28 #kmod on irc.freenode.org
29
30License:
31 LGPLv2.1+ for libkmod, testsuite and helper libraries
32 GPLv2+ for tools/*
33
34
35OVERVIEW
36========
37
38kmod is a set of tools to handle common tasks with Linux kernel modules like
39insert, remove, list, check properties, resolve dependencies and aliases.
40
41These tools are designed on top of libkmod, a library that is shipped with
42kmod. See libkmod/README for more details on this library and how to use it.
43The aim is to be compatible with tools, configurations and indexes from
44module-init-tools project.
45
46Compilation and installation
47============================
48
49In order to compiler the source code you need following software packages:
50 - GCC compiler
51 - GNU C library
52
53Optional dependencies:
54 - ZLIB library
55 - LZMA library
56
57Typical configuration:
58 ./configure CFLAGS="-g -O2" --prefix=/usr \
59 --sysconfdir=/etc --libdir=/usr/lib
60
61Configure automatically searches for all required components and packages.
62
63To compile and install run:
64 make && make install
65
66Hacking
67=======
68
69Run 'autogen.sh' script before configure. If you want to accept the recommended
70flags, you just need to run 'autogen.sh c'. Note that the recommended
71flags require cython be installed to compile successfully.
72
73Make sure to read the CODING-STYLE file and the other READMEs: libkmod/README
74and testsuite/README.
75
76Compatibility with module-init-tools
77====================================
78
79kmod replaces module-init-tools, which is end-of-life. Most of its tools are
80rewritten on top of libkmod so it can be used as a drop in replacements.
81Somethings however were changed. Reasons vary from "the feature was already
82long deprecated on module-init-tools" to "it would be too much trouble to
83support it".
84
85There are several features that are being added in kmod, but we don't
86keep track of them here.
87
88modprobe
89--------
90
91* 'modprobe -l' was marked as deprecated and does not exist anymore
92
93* 'modprobe -t' is gone, together with 'modprobe -l'
94
95* modprobe doesn't parse configuration files with names not ending in
96 '.alias' or '.conf'. modprobe used to warn about these files.
97
98* modprobe doesn't parse 'config' and 'include' commands in configuration
99 files.
100
101* modprobe from m-i-t does not honour softdeps for install commands. E.g.:
102 config:
103
104 install bli "echo bli"
105 install bla "echo bla"
106 softdep bla pre: bli
107
108 With m-i-t, the output of 'modprobe --show-depends bla' will be:
109 install "echo bla"
110
111 While with kmod:
112 install "echo bli"
113 install "echo bla"
114
115* kmod doesn't dump the configuration as is in the config files. Instead it
116 dumps the configuration as it was parsed. Therefore, comments and file names
117 are not dumped, but on the good side we know what the exact configuration
118 kmod is using. We did this because if we only want to know the entire content
119 of configuration files, it's enough to use find(1) in modprobe.d directories
120
121depmod
122------
123
124* there's no 'depmod -m' option: legacy modules.*map files are gone
125
126lsmod
127-----
128
129* module-init-tools used /proc/modules to parse module info. kmod uses
130 /sys/module/*, but there's a fallback to /proc/modules if the latter isn't
131 available
132