Age | Commit message (Collapse) | Author |
|
|
|
|
|
Be consistent with other similar functions already present and improve
documentation.
|
|
This is required by modprobe and also to help doing unit tests in future.
|
|
these tools are compatible with module-init-tools (except insmod does
not take data from stdin).
|
|
|
|
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.
|
|
|
|
This function will filter the given list against the known blacklist,
returning a new list with remaining modules with the reference
incremented.
|
|
|
|
|
|
|
|
|
|
If we create a kmod_module from a name, the path returned is relative to
the module dirname, as passed during kmod_ctx creation. Note that if
kmod_ctx is created with kmod_new(NULL), the dir used is the one
returned by uname.
|
|
this makes it easier to valgrind the error cases as well.
|
|
kmod_loaded_get_list() now returns a regular list of kmod_modules, use
kmod_module_get_module(), kmod_module_unref() and
kmod_module_unref_list() to operate on it.
|
|
|
|
|
|
Insmod is supported only with file names yet.
|
|
Remove module without dealing with the loaded modules first.
|
|
|
|
It doesn't run with `make check' since
o It's dangerous
o It needs to be run as root
o It needs an argument, otherwise it removes the first module
with use_count==0
|
|
All the functions needed by a lsmod binary are in place.
test/test-loaded.c implements it with the same output of lsmod.
|
|
|