commit | 249795046644e1be82d36e3e7f46497949b3d650 | [log] [tgz] |
---|---|---|
author | Emil Velikov <emil.l.velikov@gmail.com> | Sat May 24 16:10:11 2025 +0100 |
committer | Lucas De Marchi <lucas.de.marchi@gmail.com> | Fri May 30 09:04:02 2025 -0500 |
tree | 883d0e9c7393f52e4ea33cc15a203e5a2b84370e | |
parent | 2077cb39f2beffb15b41e73095f00a17684eca12 [diff] |
tools/depmod: use nsec granularity when checking timestamps Current code uses the POSIX.1-2001 stat::st_mtime which has one second granularity. Considering the depmod execution time may be smaller, we should be using the POSIX.1-2008 stat::st_mtim which has nano-second granularity instead. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Link: https://github.com/kmod-project/kmod/pull/359 Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
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 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.
Mailing list (no subscription needed): linux-modules@vger.kernel.org
Mailing list archives: https://lore.kernel.org/linux-modules/
Signed packages: http://www.kernel.org/pub/linux/utils/kernel/kmod/
Git:
License:
Irc: #kmod
on irc.oftc.net
In order to compile the source code you need:
Optional dependencies, required with the default build configuration:
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/
When working on kmod, use the included build-dev.ini
file, as:
meson setup --native-file build-dev.ini builddir/
Make sure to read our contributing guide and the other READMEs: libkmod and testsuite.
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.