]> git.ipfire.org Git - thirdparty/kmod.git/blob - TODO
Update TODO
[thirdparty/kmod.git] / TODO
1 Features:
2 =========
3
4 * Improve module-playground to contain the actual code from modules in the
5 testsuite
6
7 * Add command for signing modules
8 - There is a script to sign modules in kernel tree, but we should be able to
9 sign modules by ourselves
10
11 * Stop using NOFAIL() and fatal()
12
13 * Protect index against OOM
14
15 * Implement actions in kmod tool like 'insert', 'remove', 'info', etc
16
17 * testsuite:
18 - when fake delete_module() succeeds, remove its entry from /sys/module
19 - improve coverage (use --enable-coverage to check the current state)
20
21 * Stop using system() inside the library and use fork + exec instead
22
23 * config: configs that do not need to be matched by fnmatch() could be using a
24 vector instead of a list. This way we could search in it by calling
25 bsearch().
26
27 * config: implement the config handling in shared/ and use it in both depmod
28 and libkmod
29
30 * review API, maybe unify all of these getters:
31 - kmod_module_version_get_symbol()
32 - kmod_module_version_get_crc()
33 - kmod_module_symbol_get_symbol()
34 - kmod_module_symbol_get_crc()
35 - kmod_module_dependency_symbol_get_symbol()
36 - kmod_module_dependency_symbol_get_crc()
37 - kmod_module_versions_free_list()
38 - kmod_module_symbols_free_list()
39 - kmod_module_dependency_symbols_free_list()
40
41 * index: drop the "open(), seek(), read()" implementation and use another one
42 with mmap(). When lookup() is called and the file is not mmaped, mmap it.
43 Another possibility is to drop the mmap implementation relying on VFS to have
44 the pages cached. This would simplify the interface exported by libkmod.
45 Measure performance before deciding.
46
47
48 Things to be added/removed in kernel (check what is really needed):
49 ===================================================================
50
51 * list of currently loaded modules
52 - readdir() in /sys/modules: dir without a 'initstate' file means the
53 module is builtin.
54
55 * kill /proc/modules ?
56 - Unlikely, given other tools might depend on it