]> git.ipfire.org Git - thirdparty/kmod.git/blob - TODO
kmodprobe: post-remove module deps with 0 refcnt
[thirdparty/kmod.git] / TODO
1 Features:
2 =========
3
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
6 bsearch().
7
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.
10
11 * create test-mock library to be LD_PRELOAD'ed before running the binaries
12 so we're able to create unit tests
13
14 * Add functions to dump configuration. Create a list with the config items
15 (blacklist, aliases, etc) or just dump to a fd?
16
17 * Add functions to list all modules known by modules.dep
18
19 * provide 1:1 compatibility with module-init-tools's modprobe
20 - dump configuration
21
22 * Add kmod_validate(). It checks if all config files and indexes are still
23 valid. We need to save the mtime of each config dir when starting up and when
24 this function is called we stat the dir and compare the mtimes.
25
26 * review API, maybe unify all of these setters:
27 - kmod_module_version_get_symbol()
28 - kmod_module_version_get_crc()
29 - kmod_module_symbol_get_symbol()
30 - kmod_module_symbol_get_crc()
31 - kmod_module_dependency_symbol_get_symbol()
32 - kmod_module_dependency_symbol_get_crc()
33 - kmod_module_versions_free_list()
34 - kmod_module_symbols_free_list()
35 - kmod_module_dependency_symbols_free_list()
36
37 * provide modules.archive, a cache file with all modules compressed
38 and a fast access. It's like a tar.gz, but with each entry
39 compressed as opposed to the whole tar compressed, easy to pick
40 individual entries, that is, more like .gz.tar. As zlib compression
41 does not store the uncompressed file size, this could provide
42 it. The file format should be something like:
43 MAGIC-ID
44 DIRECTORY-ENTRY-SIZE
45 DIRECTORY (hash-like format, points to file offset and size)
46 ENTRIES (each is a compressed module)
47 Helper binary to:
48 kmod-archive list
49 kmod-archive add path.ko
50 kmod-archive rm path.ko
51 kmod-archive get path.ko
52 kmod-archive exists path.ko
53
54 Known Bugs:
55 ===========
56
57
58 Things to be added/removed in kernel (check what is really needed):
59 ===================================================================
60
61 * list of currently loaded modules
62
63 * module's size should be available under /sys
64
65 * kill /proc/modules ?