]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools: add static-nodes tool
authorTom Gundersen <teg@jklm.no>
Tue, 16 Apr 2013 20:39:55 +0000 (22:39 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 17 Apr 2013 02:10:36 +0000 (23:10 -0300)
commitdb6f2fc7e1152fb9aee8530e85c40bf514457aa4
tree15c726b600d2e4b20b49e4590723d86bbb7c9266
parenta20a37c351a2197992b277cee4c3209d45cbe065
tools: add static-nodes tool

This tool reads modules.devname from the current kernel directory and outputs
the information. By default in a human-readable format, and optionally in
machine-readable formats.

For now only the tmpfiles.d(5) format is supported, but more could easily be
added in the future if there is a need.

This means nothing but kmod needs to reads the private files under
/lib/modules/. In particular systemd-udevd can stop reading modules.devname.

Tools that used to read /lib/modules/`uname -r`/modules.devname directly, can
now move to reading 'kmod static-nodes devname'.
Makefile.am
tools/kmod.c
tools/kmod.h
tools/static-nodes.c [new file with mode: 0644]