4 * config: configs that do not need to be matched by fnmatch() could be using a
5 vector instead of a list. This way we could search in it by calling
8 * index: drop the "open(), seek(), read()" implementation and use another one
9 with mmap(). When lookup() is called and the file is not mmaped, mmap it.
11 * create test-mock library to be LD_PRELOAD'ed before running the binaries
12 so we're able to create unit tests
14 * Add functions to dump configuration. Create a list with the config items
15 (blacklist, aliases, etc) or just dump to a fd?
17 * Add functions to list all modules known by modules.dep
19 * provide 1:1 compatibility with module-init-tools's modprobe
21 - deal with dependency loop
22 - break dependency loop when all it needs is to check if the module is
25 * Add manpages: copy them from module-init-tools and make the necessary changes
27 * review API, maybe unify all of these setters:
28 - kmod_module_version_get_symbol()
29 - kmod_module_version_get_crc()
30 - kmod_module_symbol_get_symbol()
31 - kmod_module_symbol_get_crc()
32 - kmod_module_dependency_symbol_get_symbol()
33 - kmod_module_dependency_symbol_get_crc()
34 - kmod_module_versions_free_list()
35 - kmod_module_symbols_free_list()
36 - kmod_module_dependency_symbols_free_list()
38 * provide modules.archive, a cache file with all modules compressed
39 and a fast access. It's like a tar.gz, but with each entry
40 compressed as opposed to the whole tar compressed, easy to pick
41 individual entries, that is, more like .gz.tar. As zlib compression
42 does not store the uncompressed file size, this could provide
43 it. The file format should be something like:
46 DIRECTORY (hash-like format, points to file offset and size)
47 ENTRIES (each is a compressed module)
50 kmod-archive add path.ko
51 kmod-archive rm path.ko
52 kmod-archive get path.ko
53 kmod-archive exists path.ko
59 Things to be added/removed in kernel (check what is really needed):
60 ===================================================================
62 * list of currently loaded modules
64 * module's size should be available under /sys
66 * kill /proc/modules ?
68 Things that are different from module-init-tools on purpose (!TODO)
69 ===================================================================
74 * 'modprobe -l' was marked as deprecated and does not exist anymore
76 * 'modprobe -t' is gone, together with 'modprobe -l'
78 * there's and additional '--remove-dependencies' flags to kmod-modprobe so we
79 can remove modules depending on that one
81 * kmod-modprobe doesn't parse configuration files whose name don't end on
82 '.alias' or '.conf'. modprobe used to warn about these files.
84 * kmod-modprobe doesn't parse 'config' and 'include' commands in configuration
90 * there's no 'depmod -m' option: legacy modules.*map files are gone