]> git.ipfire.org Git - thirdparty/kmod.git/blob - TODO
libkmod-index: Return early if readroot failed
[thirdparty/kmod.git] / TODO
1 Features:
2 =========
3
4 * Protect index against OOM
5
6 * Implement actions in kmod tool like 'insert', 'remove', 'info', etc
7
8 * testsuite:
9 - when fake delete_module() succeeds, remove its entry from /sys/module
10
11 * Stop using system() inside the library and use fork + exec instead
12
13 * config: configs that do not need to be matched by fnmatch() could be using a
14 vector instead of a list. This way we could search in it by calling
15 bsearch().
16
17 * review API, maybe unify all of these getters:
18 - kmod_module_version_get_symbol()
19 - kmod_module_version_get_crc()
20 - kmod_module_symbol_get_symbol()
21 - kmod_module_symbol_get_crc()
22 - kmod_module_dependency_symbol_get_symbol()
23 - kmod_module_dependency_symbol_get_crc()
24 - kmod_module_versions_free_list()
25 - kmod_module_symbols_free_list()
26 - kmod_module_dependency_symbols_free_list()
27
28 * index: drop the "open(), seek(), read()" implementation and use another one
29 with mmap(). When lookup() is called and the file is not mmaped, mmap it.
30
31 * Finish removal of "rmmod -w" when it's gone from kernel.
32
33 * Deprecate not using KMOD_REMOVE_NOWAIT on libkmod.
34
35 Things to be added/removed in kernel (check what is really needed):
36 ===================================================================
37
38 * list of currently loaded modules
39 - readdir() in /sys/modules: dir without a 'initstate' file means the
40 module is builtin.
41
42 * kill /proc/modules ?
43 - Unlikely, given other tools might depend on it
44
45
46
47 Things that are different from module-init-tools on purpose (!TODO)
48 ===================================================================
49
50 modprobe
51 --------
52
53 * 'modprobe -l' was marked as deprecated and does not exist anymore
54
55 * 'modprobe -t' is gone, together with 'modprobe -l'
56
57 * there's and additional '--remove-dependencies' flags to modprobe so we
58 can remove modules depending on that one
59
60 * modprobe doesn't parse configuration files with names not ending in
61 '.alias' or '.conf'. modprobe used to warn about these files.
62
63 * modprobe doesn't parse 'config' and 'include' commands in configuration
64 files.
65
66 * modprobe from m-i-t does not honour softdeps for install commands. E.g.:
67 config:
68
69 install bli "echo bli"
70 install bla "echo bla"
71 softdep bla pre: bli
72
73 With m-i-t, the output of 'modprobe --show-depends bla' will be:
74 install "echo bla"
75
76 While with kmod:
77 install "echo bli"
78 install "echo bla"
79
80 * kmod doesn't dump the configuration as is in the config files. Instead it
81 dumps the configuration as it was parsed. Therefore, comments and file names
82 are not dumped, but on the good side we know what the exact configuration
83 kmod is using. We did this because if we only want to know the entire content
84 of configuration files, it's enough to use find(1) in modprobe.d directories
85
86 depmod
87 ------
88
89 * there's no 'depmod -m' option: legacy modules.*map files are gone
90
91 lsmod
92 -----
93
94 * information is parsed from /sys instead of /proc/modules