]> git.ipfire.org Git - thirdparty/kmod.git/blob - TODO
config: deprecate 'include' and 'config' commands
[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 - deal with dependency loop
22 - break dependency loop when all it needs is to check if the module is
23 already loaded
24 - check if user has permission to load module and print an error instead of
25 returning 0
26
27 * Add manpages: copy them from module-init-tools and make the necessary changes
28
29 * review API, maybe unify all of these setters:
30 - kmod_module_version_get_symbol()
31 - kmod_module_version_get_crc()
32 - kmod_module_symbol_get_symbol()
33 - kmod_module_symbol_get_crc()
34 - kmod_module_dependency_symbol_get_symbol()
35 - kmod_module_dependency_symbol_get_crc()
36 - kmod_module_versions_free_list()
37 - kmod_module_symbols_free_list()
38 - kmod_module_dependency_symbols_free_list()
39
40 * provide modules.archive, a cache file with all modules compressed
41 and a fast access. It's like a tar.gz, but with each entry
42 compressed as opposed to the whole tar compressed, easy to pick
43 individual entries, that is, more like .gz.tar. As zlib compression
44 does not store the uncompressed file size, this could provide
45 it. The file format should be something like:
46 MAGIC-ID
47 DIRECTORY-ENTRY-SIZE
48 DIRECTORY (hash-like format, points to file offset and size)
49 ENTRIES (each is a compressed module)
50 Helper binary to:
51 kmod-archive list
52 kmod-archive add path.ko
53 kmod-archive rm path.ko
54 kmod-archive get path.ko
55 kmod-archive exists path.ko
56
57 Known Bugs:
58 ===========
59
60
61 Things to be added/removed in kernel (check what is really needed):
62 ===================================================================
63
64 * list of currently loaded modules
65
66 * module's size should be available under /sys
67
68 * kill /proc/modules ?
69
70 Things that are different from module-init-tools on purpose (!TODO)
71 ===================================================================
72
73 modprobe
74 --------
75
76 * 'modprobe -l' was marked as deprecated and does not exist anymore
77
78 * 'modprobe -t' is gone, together with 'modprobe -l'
79
80 * there's and additional '--remove-dependencies' flags to kmod-modprobe so we
81 can remove modules depending on that one
82
83 * kmod-modprobe doesn't parse configuration files whose name don't end on
84 '.alias' or '.conf'. modprobe used to warn about these files.
85
86 * kmod-modprobe doesn't parse 'config' and 'include' commands in configuration
87 files.
88
89 depmod
90 ------
91
92 * there's no 'depmod -m' option: legacy modules.*map files are gone