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