]> git.ipfire.org Git - thirdparty/kmod.git/blob - TODO
testsuite: create initstate file upon fake init_module()
[thirdparty/kmod.git] / TODO
1 Features:
2 =========
3
4 * testsuite:
5 - when fake delete_module() succeeds, remove its entry from /sys/module
6 - add test for dependency loop _with install commands_ relying on module
7 already been loaded in order to succeed. E.g.: alsa install rules on
8 debian:
9
10 install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; }
11 install snd_rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
12 install snd_emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }
13 install snd_pcm modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { modprobe --quiet snd-pcm-oss ; : ; }
14 install snd_mixer modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { modprobe --quiet snd-mixer-oss ; : ; }
15 install snd_seq modprobe --ignore-install snd-seq $CMDLINE_OPTS && { modprobe --quiet snd-seq-midi ; modprobe --quiet snd-seq-oss ; : ; }
16
17 * review API, maybe unify all of these setters:
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 * Stop using system() inside the library and use fork + exec instead
29
30 * config: configs that do not need to be matched by fnmatch() could be using a
31 vector instead of a list. This way we could search in it by calling
32 bsearch().
33
34 * index: drop the "open(), seek(), read()" implementation and use another one
35 with mmap(). When lookup() is called and the file is not mmaped, mmap it.
36
37 * Implement actions in kmod tool like 'insert', 'remove', 'info', etc
38
39 Things to be added/removed in kernel (check what is really needed):
40 ===================================================================
41
42 * list of currently loaded modules
43 - readdir() in /sys/modules: dir without a 'initstate' file means the
44 module is builtin.
45
46 * module's size should be available under /sys
47 - DONE in 3.3: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=cca3e707301862ca9b9327e6a732463982f8cd1b
48
49 * kill /proc/modules ?
50 - Unlikely, given other tools might depend on it
51
52 Things that are different from module-init-tools on purpose (!TODO)
53 ===================================================================
54
55 modprobe
56 --------
57
58 * 'modprobe -l' was marked as deprecated and does not exist anymore
59
60 * 'modprobe -t' is gone, together with 'modprobe -l'
61
62 * there's and additional '--remove-dependencies' flags to modprobe so we
63 can remove modules depending on that one
64
65 * modprobe doesn't parse configuration files with names not ending in
66 '.alias' or '.conf'. modprobe used to warn about these files.
67
68 * modprobe doesn't parse 'config' and 'include' commands in configuration
69 files.
70
71 * modprobe from m-i-t does not honour softdeps for install commands. E.g.:
72 config:
73
74 install bli "echo bli"
75 install bla "echo bla"
76 softdep bla pre: bli
77
78 With m-i-t, the output of 'modprobe --show-depends bla' will be:
79 install "echo bla"
80
81 While with kmod:
82 install "echo bli"
83 install "echo bla"
84
85 * kmod doesn't dump the configuration as is in the config files. Instead it
86 dumps the configuration as it was parsed. Therefore, comments and file names
87 are not dumped, but on the good side we know what the exact configuration
88 kmod is using. We did this because if we only want to know the entire content
89 of configuration files, it's enough to use find(1) in modprobe.d directories
90
91 depmod
92 ------
93
94 * there's no 'depmod -m' option: legacy modules.*map files are gone
95
96 lsmod
97 -----
98
99 * information is parsed from /sys instead of /proc/modules