]> git.ipfire.org Git - thirdparty/kmod.git/blob - TODO
Add WARNING file for test dir and improve testsuite README
[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 * review API, maybe unify all of these setters:
12 - kmod_module_version_get_symbol()
13 - kmod_module_version_get_crc()
14 - kmod_module_symbol_get_symbol()
15 - kmod_module_symbol_get_crc()
16 - kmod_module_dependency_symbol_get_symbol()
17 - kmod_module_dependency_symbol_get_crc()
18 - kmod_module_versions_free_list()
19 - kmod_module_symbols_free_list()
20 - kmod_module_dependency_symbols_free_list()
21
22 * provide modules.archive, a cache file with all modules compressed
23 and a fast access. It's like a tar.gz, but with each entry
24 compressed as opposed to the whole tar compressed, easy to pick
25 individual entries, that is, more like .gz.tar. As zlib compression
26 does not store the uncompressed file size, this could provide
27 it. The file format should be something like:
28 MAGIC-ID
29 DIRECTORY-ENTRY-SIZE
30 DIRECTORY (hash-like format, points to file offset and size)
31 ENTRIES (each is a compressed module)
32 Helper binary to:
33 kmod-archive list
34 kmod-archive add path.ko
35 kmod-archive rm path.ko
36 kmod-archive get path.ko
37 kmod-archive exists path.ko
38
39 * Stop using system() inside the library and use fork + exec instead
40
41 Known Bugs:
42 ===========
43
44
45 Things to be added/removed in kernel (check what is really needed):
46 ===================================================================
47
48 * list of currently loaded modules
49 - readdir() in /sys/modules: dirs without a 'initstate' file mean the
50 modules is builtin.
51
52 * module's size should be available under /sys
53 - DONE in 3.3: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=cca3e707301862ca9b9327e6a732463982f8cd1b
54
55 * kill /proc/modules ?
56 - Unlikely, given other tools might depend on it
57
58 Things that are different from module-init-tools on purpose (!TODO)
59 ===================================================================
60
61 modprobe
62 --------
63
64 * 'modprobe -l' was marked as deprecated and does not exist anymore
65
66 * 'modprobe -t' is gone, together with 'modprobe -l'
67
68 * there's and additional '--remove-dependencies' flags to kmod-modprobe so we
69 can remove modules depending on that one
70
71 * kmod-modprobe doesn't parse configuration files whose name don't end on
72 '.alias' or '.conf'. modprobe used to warn about these files.
73
74 * kmod-modprobe doesn't parse 'config' and 'include' commands in configuration
75 files.
76
77 * we don't use <module-dir>/modules.builtin{,.bin} indexes. Instead we rely on
78 module appearing on /sys/modules/* without a initstate file to determine if
79 it is builtin.
80
81 * modprobe from m-i-t does not honour softdeps for install commands. E.g.:
82 config:
83
84 install bli "echo bli"
85 install bla "echo bla"
86 softdep bla pre: bli
87
88 With m-i-t, the output of 'modprobe --show-depends bla' will be:
89 install "echo bla"
90
91 While with kmod:
92 install "echo bli"
93 install "echo bla"
94
95 * kmod doesn't dump the configuration as is in the config files. Instead it
96 dumps the configuration as it was parsed. Therefore, comments and file names
97 are not dumped, but on the good side we know what the exact configuration
98 kmod is using. We did this because if we only want to know the entire content
99 of configuration files, it's enough to use find(1) in modprobe.d directories
100
101 depmod
102 ------
103
104 * there's no 'depmod -m' option: legacy modules.*map files are gone
105
106 lsmod
107 -----
108
109 * information is parsed from /sys instead of /proc/modules