Gustavo Sverzut Barbieri
0cc3ccfd52
Introduce kmod-modinfo.
2011-12-19 15:06:49 -02:00
Gustavo Sverzut Barbieri
708624a4eb
ELF: initial support for modinfo and strip of modversions and vermagic.
...
Needs testing, but should work.
2011-12-19 15:06:49 -02:00
Gustavo Sverzut Barbieri
3d8226edfe
implement zlib module loading.
2011-12-17 19:43:11 -02:00
Lucas De Marchi
89eba7cb77
kmod 1
2011-12-15 15:43:58 -02:00
Lucas De Marchi
e269a84cab
Add libkmod files to EXTRA_DIST
2011-12-15 15:40:22 -02:00
Lucas De Marchi
0283d6b666
build-sys: add version map file to build dependencies
...
Based on original patch from Jan Engelhardt <jengelh@medozas.de> to
libabc.
2011-12-12 17:06:15 -02:00
Lucas De Marchi
49ce6d0741
Remove libkmod-loaded.c and re-order functions in libkmod-module.c
...
It's not possible to move functions related to "live" modules to
libkmod-loaded.c because they depend on the definition of kmod_module.
Putting this structure in the private header is not a good idea, so let
all functions related to "live" information in the end of
libkmod-module.c, and move the sole function from libkmod-loaded.c to
this place. This way all functions get the right documentation
about their sections.
2011-12-12 13:56:47 -02:00
Gustavo Sverzut Barbieri
c3d0a5f2ef
tools: add modprobe
...
try to mimic original module-init-tools' modprobe as much as possible,
but this exposed some missing features in libkmod, these are now
listed in TODO.
2011-12-11 20:58:22 -02:00
Gustavo Sverzut Barbieri
72c51a9e4d
add lsmod, insmod and rmmod tools.
...
these tools are compatible with module-init-tools (except insmod does
not take data from stdin).
2011-12-11 20:58:22 -02:00
Gustavo Sverzut Barbieri
1487a64ffa
add kmod_module_get_filtered_blacklist()
...
This function will filter the given list against the known blacklist,
returning a new list with remaining modules with the reference
incremented.
2011-12-08 11:17:16 -02:00
Lucas De Marchi
fab4978ac1
test: add test for modules' hash
2011-12-06 03:49:30 -02:00
Lucas De Marchi
1843b153b4
test: add test to get dependencies of a module
2011-12-06 03:34:51 -02:00
Lucas De Marchi
c5b5ea9c7c
test: add test to convert name to path
...
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.
2011-12-06 03:34:51 -02:00
Gustavo Sverzut Barbieri
7db08652cd
Add simple hash implementation
2011-12-05 19:24:06 -02:00
Lucas De Marchi
85ece2042f
Do not ship autogen.sh in the tarball
...
Copied from libabc.
2011-12-02 17:54:42 -02:00
Lucas De Marchi
aed94cd72a
Add test for lookup function
2011-11-30 19:10:48 -02:00
Lucas De Marchi
e8847fd2fc
Import index handling from module-init-tools
...
This effectively makes the combined work be GPL. All other parts of this
library are still LGPL and if this part in future becomes
double-licensed, we can switch back to LGPL.
2011-11-30 15:23:49 -02:00
Lucas De Marchi
7c2ab358fd
Add support for parsing config files
...
Right now only alias keyword is treated.
2011-11-29 18:07:43 -02:00
Lucas De Marchi
4462c4ac60
Add getline_wrapped() to parse config files
...
Basically copied from module-init-tools
2011-11-29 18:05:43 -02:00
Lucas De Marchi
a5494f831f
Add test-insmod to insert modules
...
Insmod is supported only with file names yet.
2011-11-25 01:25:18 -02:00
Lucas De Marchi
b84a206085
Add test-rmmod2
...
Remove module without dealing with the loaded modules first.
2011-11-25 01:24:16 -02:00
Lucas De Marchi
8f788d58c3
Add functions to operate on modules
2011-11-25 01:22:56 -02:00
Lucas De Marchi
46cfa8dc45
Fix check_PROGRAMS in autofoo
2011-11-25 01:21:47 -02:00
Lucas De Marchi
eee1345cf2
Add binary to test rmmod feature
...
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
2011-11-23 17:22:09 -02:00
Lucas De Marchi
88e9c12e4e
Rename libkmod-util.h to macro.h
2011-11-23 16:08:04 -02:00
Lucas De Marchi
5369797d09
Add libkmod-loaded to handle live modules information
...
All the functions needed by a lsmod binary are in place.
test/test-loaded.c implements it with the same output of lsmod.
2011-11-23 11:44:17 -02:00
Lucas De Marchi
6924e47a8d
Implement circular double-linked list
2011-11-23 05:15:21 -02:00
Lucas De Marchi
be0e323604
Put test back
2011-11-22 17:47:52 -02:00
Lucas De Marchi
c83a45ea87
Fix version to 0:0:0
...
Version is only incremented upon release
2011-11-22 05:36:50 -02:00
Lucas De Marchi
586fc304d8
Rename libabc to libkmod
2011-11-21 14:35:35 -02:00
Lucas De Marchi
ecd40ee499
Import skeleton from libabc
2011-11-21 12:35:15 -02:00