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