2011-12-02 03:23:47 +07:00
|
|
|
Features:
|
2011-12-16 11:02:58 +07:00
|
|
|
=========
|
2011-12-02 03:23:47 +07:00
|
|
|
|
|
|
|
* 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().
|
|
|
|
|
2011-12-02 23:49:57 +07:00
|
|
|
* 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.
|
|
|
|
|
2011-12-12 04:36:18 +07:00
|
|
|
* create test-mock library to be LD_PRELOAD'ed before running the binaries
|
2011-12-10 22:32:27 +07:00
|
|
|
so we're able to create unit tests
|
2011-12-12 04:36:18 +07:00
|
|
|
|
2011-12-28 02:32:55 +07:00
|
|
|
* Add functions to dump configuration. Create a list with the config items
|
|
|
|
(blacklist, aliases, etc) or just dump to a fd?
|
2011-12-14 23:02:28 +07:00
|
|
|
|
2011-12-28 02:32:55 +07:00
|
|
|
* Add functions to list all modules known by modules.dep
|
2011-12-14 23:02:28 +07:00
|
|
|
|
|
|
|
* provide 1:1 compatibility with module-init-tools's modprobe
|
|
|
|
- dump configuration
|
2012-01-10 19:19:01 +07:00
|
|
|
- deal with dependency loop
|
|
|
|
- break dependency loop when all it needs is to check if the module is
|
|
|
|
already loaded
|
2011-12-12 19:48:02 +07:00
|
|
|
|
2012-01-01 04:41:05 +07:00
|
|
|
* Add manpages: copy them from module-init-tools and make the necessary changes
|
|
|
|
|
2011-12-20 20:54:53 +07:00
|
|
|
* review API, maybe unify all of these setters:
|
|
|
|
- kmod_module_version_get_symbol()
|
|
|
|
- kmod_module_version_get_crc()
|
|
|
|
- kmod_module_symbol_get_symbol()
|
|
|
|
- kmod_module_symbol_get_crc()
|
|
|
|
- kmod_module_dependency_symbol_get_symbol()
|
|
|
|
- kmod_module_dependency_symbol_get_crc()
|
|
|
|
- kmod_module_versions_free_list()
|
|
|
|
- kmod_module_symbols_free_list()
|
|
|
|
- kmod_module_dependency_symbols_free_list()
|
|
|
|
|
2011-12-19 20:37:08 +07:00
|
|
|
* provide modules.archive, a cache file with all modules compressed
|
|
|
|
and a fast access. It's like a tar.gz, but with each entry
|
|
|
|
compressed as opposed to the whole tar compressed, easy to pick
|
|
|
|
individual entries, that is, more like .gz.tar. As zlib compression
|
|
|
|
does not store the uncompressed file size, this could provide
|
|
|
|
it. The file format should be something like:
|
|
|
|
MAGIC-ID
|
|
|
|
DIRECTORY-ENTRY-SIZE
|
|
|
|
DIRECTORY (hash-like format, points to file offset and size)
|
|
|
|
ENTRIES (each is a compressed module)
|
|
|
|
Helper binary to:
|
|
|
|
kmod-archive list
|
|
|
|
kmod-archive add path.ko
|
|
|
|
kmod-archive rm path.ko
|
|
|
|
kmod-archive get path.ko
|
|
|
|
kmod-archive exists path.ko
|
|
|
|
|
2011-12-15 00:21:10 +07:00
|
|
|
Known Bugs:
|
2011-12-16 11:02:58 +07:00
|
|
|
===========
|
|
|
|
|
|
|
|
|
2011-12-28 02:32:55 +07:00
|
|
|
Things to be added/removed in kernel (check what is really needed):
|
2011-12-16 11:02:58 +07:00
|
|
|
===================================================================
|
|
|
|
|
|
|
|
* list of currently loaded modules
|
|
|
|
|
|
|
|
* module's size should be available under /sys
|
2011-12-14 23:02:28 +07:00
|
|
|
|
2011-12-16 11:02:58 +07:00
|
|
|
* kill /proc/modules ?
|
2012-01-01 14:47:17 +07:00
|
|
|
|
|
|
|
Things that are different from module-init-tools on purpose (!TODO)
|
|
|
|
===================================================================
|
|
|
|
|
|
|
|
modprobe
|
|
|
|
--------
|
|
|
|
|
|
|
|
* 'modprobe -l' was marked as deprecated and does not exist anymore
|
|
|
|
|
|
|
|
* 'modprobe -t' is gone, together with 'modprobe -l'
|
|
|
|
|
|
|
|
* there's and additional '--remove-dependencies' flags to kmod-modprobe so we
|
|
|
|
can remove modules depending on that one
|
|
|
|
|
|
|
|
* kmod-modprobe doesn't parse configuration files whose name don't end on
|
|
|
|
'.alias' or '.conf'. modprobe used to warn about these files.
|
|
|
|
|
2012-01-11 09:28:12 +07:00
|
|
|
* kmod-modprobe doesn't parse 'config' and 'include' commands in configuration
|
|
|
|
files.
|
|
|
|
|
2012-01-01 14:47:17 +07:00
|
|
|
depmod
|
|
|
|
------
|
|
|
|
|
|
|
|
* there's no 'depmod -m' option: legacy modules.*map files are gone
|