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