mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-12-18 04:27:03 +07:00
e5e2a683f7
Handle install/remove commands just like modprobe does. Test configure file: install installme echo "this is a install message" remove removeme echo "this is a remove message" Tests: $ ./tools/kmod-modprobe installme this is a install message $ ./tools/kmod-modprobe -r removeme this is a remove message $ ./tools/kmod-modprobe removeme FATAL: Module removeme not found. ./tools/kmod-modprobe -r installme FATAL: Module installme not found.
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
Features:
|
|
=========
|
|
|
|
* config: configs that do not need to be matched by fnmatch() could be using a
|
|
vector instead of a list. This way we could search in it by calling
|
|
bsearch().
|
|
|
|
* index: drop the "open(), seek(), read()" implementation and use another one
|
|
with mmap(). When lookup() is called and the file is not mmaped, mmap it.
|
|
|
|
* create test-mock library to be LD_PRELOAD'ed before running the binaries
|
|
so we're able to create unit tests
|
|
|
|
* provide ELF manipulation to implement modinfo
|
|
|
|
* Add functions to dump configuration
|
|
|
|
* Add functions list all modules known by modules.dep
|
|
|
|
* provide 1:1 compatibility with module-init-tools's modprobe
|
|
- show modversions (needs elf manipulation)
|
|
- dump configuration
|
|
|
|
Known Bugs:
|
|
===========
|
|
|
|
|
|
Notes for future development:
|
|
=============================
|
|
|
|
* Kill support for /etc/modprobe.conf
|
|
|
|
* Kill support for map files
|
|
|
|
Things to be added removed in kernel (check what is really needed):
|
|
===================================================================
|
|
|
|
* list of currently loaded modules
|
|
|
|
* module's size should be available under /sys
|
|
|
|
* kill /proc/modules ?
|