]> git.ipfire.org Git - thirdparty/kmod.git/blob - TODO
TODO: add task in modprobe's compatibility
[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
15
16 * Add functions list all modules known by modules.dep
17
18 * provide 1:1 compatibility with module-init-tools's modprobe
19 - dump configuration
20 - 'modprobe -r' should remove modules which usecount became 0 because of
21 module's removal
22
23 * provide depmod:
24 - add missing libkmod-elf.c functions:
25 - fetch_tables()
26 - deref_sym() (used by fetch_tables)
27 - add index writing functions to kmod-depmod.c
28 - 1:1 compatible kmod-depmod.c
29
30 * review API, maybe unify all of these setters:
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 * provide modules.archive, a cache file with all modules compressed
42 and a fast access. It's like a tar.gz, but with each entry
43 compressed as opposed to the whole tar compressed, easy to pick
44 individual entries, that is, more like .gz.tar. As zlib compression
45 does not store the uncompressed file size, this could provide
46 it. The file format should be something like:
47 MAGIC-ID
48 DIRECTORY-ENTRY-SIZE
49 DIRECTORY (hash-like format, points to file offset and size)
50 ENTRIES (each is a compressed module)
51 Helper binary to:
52 kmod-archive list
53 kmod-archive add path.ko
54 kmod-archive rm path.ko
55 kmod-archive get path.ko
56 kmod-archive exists path.ko
57
58 Known Bugs:
59 ===========
60
61
62 Notes for future development:
63 =============================
64
65 * Kill support for /etc/modprobe.conf
66
67 * Kill support for map files
68
69 Things to be added removed in kernel (check what is really needed):
70 ===================================================================
71
72 * list of currently loaded modules
73
74 * module's size should be available under /sys
75
76 * kill /proc/modules ?