]> git.ipfire.org Git - thirdparty/kmod.git/commit
export module's options and commands.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 10 Dec 2011 22:47:01 +0000 (20:47 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sun, 11 Dec 2011 22:58:21 +0000 (20:58 -0200)
commitbd3f5535268836aa697f84fa6946e4b0fc22df0b
treed4a8185ed32d79a17170c91d992e07d1a7bb16b0
parentb6a534f72c66b489a6dbc71468db9eb609c3c8bb
export module's options and commands.

This will be required to implement modprobe later. The implementation
follows "man modprobe.conf" and allows options to be specified for
alias as well, thus the need for kmod_resolve_alias_options().

Example mod-a.conf:

    options mod-a a=1 b=2
    options mod-a c=3
    alias mymod-a mod-a
    options mymod-a d=4

Results in:
    options mod-a a=1 b=2 c=3
    options mymod-a a=1 b=2 c=3 d=4

Install commands are being concatenated with ";", but manpage is not
clean about this behavior.
libkmod/libkmod-config.c
libkmod/libkmod-module.c
libkmod/libkmod-private.h
libkmod/libkmod.c
libkmod/libkmod.h
libkmod/libkmod.sym
test/test-lookup.c