Lucas De Marchi
191ab4b9e0
Fix wrong copyright
...
I'm the author, not the copyright owner.
2011-11-28 16:59:06 -02:00
Lucas De Marchi
ae6df84a3c
Make log function uppercase
...
The worst case is the err() macro. Usually err is used as a variable,
which clashes with this macro.
2011-11-25 01:05:30 -02:00
Lucas De Marchi
853b5fc52e
Ref and unref ctx when kmod_loaded is created/destroyed
2011-11-24 23:09:39 -02:00
Lucas De Marchi
cf9aadeb25
Fix refcount of loaded modules
2011-11-24 15:41:15 -02:00
Lucas De Marchi
6fc20bbfee
Keep valgrind happy when mixing sscanf and strtok
...
When mixing sscanf() and strtok() Valgrind complaints like below:
==1641== Conditional jump or move depends on uninitialised value(s)
Use stroull() instead of sscanf().
2011-11-23 17:52:48 -02:00
Lucas De Marchi
6806a0437f
Implement function to remove module
2011-11-23 17:14:22 -02:00
Lucas De Marchi
6d177553dc
Constify API
2011-11-23 12:28:23 -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