]> git.ipfire.org Git - thirdparty/kmod.git/commit - libkmod/libkmod.c
libkmod-config: refactor functions to get config
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 12 Jun 2012 04:43:46 +0000 (01:43 -0300)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 12 Jun 2012 04:43:46 +0000 (01:43 -0300)
commite7fc2c868e240b280f593934278cc719e33e90f7
tree3d0ea1965bcd7bd46e8ad976e6f1a5512534eafe
parentc8c956b1995f53a25d365b67d66204208e496150
libkmod-config: refactor functions to get config

It makes more sense to have libkmod-config.c deal with the configuration
directly and the others get the config from ctx. As a bonus point we get
a smaller binary. Following numbers are for x86-64, libkmod + kmod:

Before:
   text    data     bss     dec     hex filename
 128840    1496     104  130440   1fd88 tools/modprobe

After:
   text    data     bss     dec     hex filename
 128392    1496     104  129992   1fbc8 tools/modprobe
libkmod/libkmod-config.c
libkmod/libkmod-module.c
libkmod/libkmod-private.h
libkmod/libkmod.c