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