1
0
Fork 0
mirror of git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git synced 2026-12-03 16:24:54 +00:00
No description
  • C 90.1%
  • Shell 5.7%
  • Meson 3.7%
  • Makefile 0.5%
Find a file
Emil Velikov eec3e95265 ci: drop deprecated symbols override
With the deprecation warnings (errors) introduced with OpenSSL v4.1
properly (tm) addressed, we can reinstate the error.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/510
Signed-off-by: Lucas De Marchi <demarchi@kernel.org>
2026-11-23 08:46:08 -06:00
.github ci: drop deprecated symbols override 2026-11-23 08:46:08 -06:00
libkmod libkmod: use the kernel's hash_info.h for hash algo ids 2026-11-06 22:59:37 -06:00
man depmod: Deprecate --show in favor of --dry-run 2026-11-01 22:28:14 -06:00
missing/linux libkmod: use the kernel's hash_info.h for hash algo ids 2026-11-06 22:59:37 -06:00
scripts scripts/sanitizer-env.sh: Move log to stderr 2026-10-29 08:27:19 -05:00
shared shared/tmpfile: update tmpfile_openat() to return the error 2026-11-06 22:50:18 -06:00
shell-completion shell-completion: fix shellcheck warnings in bash completions 2026-10-29 08:19:22 -05:00
testsuite testsuite: remove non-applicable .gitkeep 2026-11-19 00:06:23 -06:00
tools modinfo: remove hard-coded "foobar not found" messages 2026-11-08 22:06:58 -06:00
.clang-format ci: Move build matrix to a json file 2026-11-11 08:45:02 -06:00
.codespellignore .codespellignore: remove caf instance 2026-08-10 08:49:47 -05:00
.editorconfig ci: add more SPDX copyright/license identifiers 2024-09-27 23:08:09 -05:00
.gitignore .gitignore: remove majority of listings 2026-02-02 22:59:03 -06:00
.mailmap Change my email address 2026-10-06 08:33:50 -05:00
build-dev.ini Disable mbedtls >= 4.0 2026-10-15 09:18:57 -05:00
CODING-STYLE.md CODING-STYLE: Mention kernel only 2026-11-06 23:06:54 -06:00
CONTRIBUTING.md CONTRIBUTING.md: add a small testing section 2026-11-11 08:21:01 -06:00
COPYING COPYING: drop double-space the Copyright example 2026-07-28 09:11:03 -05:00
meson.build meson.build: define OPENSSL_API_COMPAT that we use 2026-11-23 08:46:08 -06:00
meson_options.txt ci: enable mbedtls by default for most instances 2026-06-20 11:13:26 -05:00
NEWS NEWS: squash a couple of typos 2025-03-11 13:44:23 -05:00
README.md mbedlts: add as alternative to openssl 2026-06-20 11:13:26 -05:00

kmod - Linux kernel module handling

OVERVIEW

kmod is a set of tools to handle common tasks with Linux kernel modules like insert, remove, list, check properties, resolve dependencies and aliases.

These tools are designed on top of libkmod, a library that is shipped with kmod. See libkmod/README.md for more details on this library and how to use it. The aim is to be compatible with tools, configurations and indexes from module-init-tools project.

Links

Compilation and installation

In order to compile the source code you need:

  • C11 compiler, supporting a range of GNU extensions - GCC 8+, Clang 6+
  • POSIX.1-2008 C runtime library - Bionic, GNU C library, musl

Optional dependencies, required with the default build configuration:

  • ZLIB library
  • LZMA library
  • ZSTD library
  • OPENSSL library (signature handling in modinfo)
  • MBEDTLS library (signature handling in modinfo)

All the optional dependencies are loaded on demand via dlopen by default. This can be changed via the dlopen build option. Typical configuration and installation:

meson setup builddir/
meson compile -C builddir/
sudo meson install -C builddir/

For end-user and distributions builds, it's recommended to use:

meson setup --buildtype release builddir/

Hacking

When working on kmod, use the included build-dev.ini file, as:

meson setup --native-file build-dev.ini builddir/

The testsuite can be executed with:

meson test -C builddir

It builds test kernel modules, so kernel headers need to be pre-installed. By default it tries to use the kernel header for the currently running kernel. KDIR=any environment variable can be used to tell it to use any installed kernel header or KDIR=/path/to/specific/headers when a specific one is needed. Example:

KDIR=any meson test -C builddir

Make sure to read our contributing guide and the other READMEs: libkmod and testsuite.

Compatibility with module-init-tools

kmod replaced module-init-tools, which was EOL'ed in 2011. All the tools were rewritten on top of libkmod and they can be used as drop in replacements. Along the years there were a few behavior changes and new features implemented, following feedback from Linux kernel community and distros.