Features Download
From: Lucas De Marchi <lucas.demarchi-Y3ZbgMPKUGA34EUeqzHoZw <at> public.gmane.org>
Subject: [ANNOUNCE] kmod 2
Newsgroups: gmane.linux.kernel.modules
Date: Wednesday 21st December 2011 02:35:12 UTC (over 5 years ago)
Hi all,


I'm glad to announce the second version of kmod. I'm sorry for not
sending the announcement on this mailing list for the first version.
For those who didn't see the first announcement can check at

I thank very much the feedback received for the first version and that
now Jon Masters, the maintainer of module-init-tools, is helping us
with kmod and already announced that kmod will replace
module-init-tools in future

I'd like to especially thank Tom Gundersen, Dave Reisner, Marco
d'Itri, Jon Masters, Luis Felipe, Jan Engelhardt and Kay Sievers who
have been extensively testing kmod and helping with compatibility with
previous tools. Right now kmod is tested in i686, x86_64, sparcv9,
powepc64, s390 and ARM. More testers are greatly appreciated,
especially for architectures not mentioned here.

News for this version are (copying from NEWS file):

Some bugs fixed: the worst of them was with an infinite loop when an alias
matched more than one module.

- New APIs in libkmod to:
       - Get soft dependencies
       - Get info from module files parsing ELF
       - Get modversions from files parsing ELF
- Support to load gzipped kernel modules: kmod can be compiled with support
 gzipped modules by giving the --enable-zlib flag
- Support to forcefully load modules, both vermagic and modversion
- Support to force and nowait removal flags
- Configuration files are parsed in the same order as modprobe: files are
 sorted alphabetically (independently of their dir) and files with the
 name obey a precedence order
- New tool: kmod-modinfo
- kmod-modprobe gained several features to be a 1:1 replacement for
 The only missing things are the options '--showconfig' and '-t / -l'.
 last ones have been deprecated long ago and they will be removed from
 modprobe. A lot of effort has been put on kmod-modprobe to ensure it
 maintains compabitility with modprobe.
- [email protected] became the official
mailing list for kmod

For the next version, we plan to migrate our git repository to
kernel.org. Meanwhile, git repository can be found at
and packages at

Shortlog for kmod 2 is below.

Cristian Rodríguez (2):
     Library must use O_CLOEXEC whenever it opens file descriptors
     Open more file descriptors with O_CLOEXEC

Gustavo Sverzut Barbieri (22):
     implement zlib module loading.
     fix error handling path.
     implement softdeps.
     fix kmod_list_prev().
     introduce kmod_list_last()
     introduce kmod_list_foreach_reverse().
     kmod-modprobe: implement softdeps.
     compatibility: match commands using fnmatch() instead of strcmp().
     TODO: add idea about single file with all compressed modules.
     ELF: initial support for modinfo and strip of modversions and
     kmod-modprobe: implement --dump-modversions
     kmod-modprobe: improve --help output.
     elf: fix minimum file size calculation.
     Introduce kmod-modinfo.
     kmod-modinfo: add missing short options.
     kmod-modinfo: fix typo and output format.
     elf: do not output empty strings.
     kmod-modinfo: -p (-F parm) shows also parmtype in Debian
expected formatting.
     elf: fix typo that resulted in invalid uint reads for big-endian
     elf: skip leading symbol dot in modversion.
     kmod_module_new_*: improve debugging.
     configure: disable static zlib build.

Jan Engelhardt (3):
     libkmod: use C99 __func__ over GNU-specific __FUNCTION__
     gitignore: only ignore build system files in the top directory
     build: use dist-xz

Kay Sievers (1):
     introduce --with-rootprefix=DIR

Lucas De Marchi (33):
     TODO: add new tasks and notes to future development
     tools: fix kmod-modprobe -R trying to insert module
     Add address of mailing list
     kmod_module: do not find more than the first command
     Lookup for commands in kmod_module_new_from_lookup()
     Use tab instead of spaces
     Fix leak of kmod_module
     Fix wrong name len when converting path to modname
     kmod_modprobe: fix handling of remove commands
     kmod_modprobe: properly handle install/remove commands
     Fix debug message formatting
     build-sys: remove unneeded _SOURCES vars
     Reduce ident by continuing early
     Terminate strv with NULL
     Put blank lines where it's due
     Remove unneeded reference to last string
     Optimize kmod_elf_get_strings() by reducing calls to memcpy
     Make section size constant since it's always the same
     Cache the offset of crc
     elf: fix regression with empty strings
     Fix check for opened indexes
     kmod_modprobe: Fix regression when inserting module
     kmod_config: fix kcmd line parser with dots after =
     Use sorted configuration files in precedence order
     kmod_modprobe: fix description of -C flag
     build-sys: default to "" as rootprefix
     build-sys: remove remaining _SOURCES var
     Move symbols introduced in libkmod2 to the right place
     Removing comments saying flags are not implemented
     build-sys: do not use some compile flags by default
     Update doc to reflect function behavior
     Change error message to reflect reality
     kmod 2

Luis Felipe Strano Moraes (2):
     Removing warnings when compiling on i686 platform.
     Testing for return of alias_normalize.

Ulisses Furquim (1):
     trivial: fix typo causing an infinite loop

Lucas De Marchi
CD: 4ms