blob: e947796b568133adb0d32a41096e5fba0da0608e [file] [log] [blame]
Lucas De Marchibf89f762011-12-01 18:23:47 -02001Features:
Lucas De Marchi5e690c52011-12-16 02:02:58 -02002=========
Lucas De Marchibf89f762011-12-01 18:23:47 -02003
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
Lucas De Marchic3325cf2011-12-02 14:49:57 -02008* 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
Gustavo Sverzut Barbieric3d0a5f2011-12-11 19:36:18 -020011* create test-mock library to be LD_PRELOAD'ed before running the binaries
Gustavo Sverzut Barbieri7fe602b2011-12-10 13:32:27 -020012 so we're able to create unit tests
Gustavo Sverzut Barbieric3d0a5f2011-12-11 19:36:18 -020013
Lucas De Marchi3af535c2011-12-27 17:32:55 -020014* Add functions to dump configuration. Create a list with the config items
15 (blacklist, aliases, etc) or just dump to a fd?
Lucas De Marchid68ea2a2011-12-14 14:02:28 -020016
Lucas De Marchi3af535c2011-12-27 17:32:55 -020017* Add functions to list all modules known by modules.dep
Lucas De Marchid68ea2a2011-12-14 14:02:28 -020018
Lucas De Marchid68ea2a2011-12-14 14:02:28 -020019* provide 1:1 compatibility with module-init-tools's modprobe
Lucas De Marchid68ea2a2011-12-14 14:02:28 -020020 - dump configuration
Lucas De Marchid68ea2a2011-12-14 14:02:28 -020021
Lucas De Marchi657722d2011-12-31 19:41:05 -020022* Add manpages: copy them from module-init-tools and make the necessary changes
23
Gustavo Sverzut Barbieri674f8592011-12-20 11:54:53 -020024* 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
Lucas De Marchid89d7cb2012-01-12 18:14:32 -020035* unify code from modprobe and libkmod:
36 - remove kmod_module_probe_insert() and turn it into
37 kmod_module_probe_get_list(); this way modprobe can use it too
38
Gustavo Sverzut Barbierif841e632011-12-19 11:37:08 -020039* provide modules.archive, a cache file with all modules compressed
40 and a fast access. It's like a tar.gz, but with each entry
41 compressed as opposed to the whole tar compressed, easy to pick
42 individual entries, that is, more like .gz.tar. As zlib compression
43 does not store the uncompressed file size, this could provide
44 it. The file format should be something like:
45 MAGIC-ID
46 DIRECTORY-ENTRY-SIZE
47 DIRECTORY (hash-like format, points to file offset and size)
48 ENTRIES (each is a compressed module)
49 Helper binary to:
50 kmod-archive list
51 kmod-archive add path.ko
52 kmod-archive rm path.ko
53 kmod-archive get path.ko
54 kmod-archive exists path.ko
55
Lucas De Marchi5e690c52011-12-16 02:02:58 -020056Known Bugs:
57===========
58
Lucas De Marchi5e690c52011-12-16 02:02:58 -020059
Lucas De Marchi3af535c2011-12-27 17:32:55 -020060Things to be added/removed in kernel (check what is really needed):
Lucas De Marchi5e690c52011-12-16 02:02:58 -020061===================================================================
62
63* list of currently loaded modules
64
65* module's size should be available under /sys
66
67* kill /proc/modules ?
Lucas De Marchi5a96c5f2012-01-01 05:47:17 -020068
69Things that are different from module-init-tools on purpose (!TODO)
70===================================================================
71
72modprobe
73--------
74
75* 'modprobe -l' was marked as deprecated and does not exist anymore
76
77* 'modprobe -t' is gone, together with 'modprobe -l'
78
79* there's and additional '--remove-dependencies' flags to kmod-modprobe so we
80 can remove modules depending on that one
81
82* kmod-modprobe doesn't parse configuration files whose name don't end on
83 '.alias' or '.conf'. modprobe used to warn about these files.
84
Lucas De Marchi0ad5dd02012-01-11 00:28:12 -020085* kmod-modprobe doesn't parse 'config' and 'include' commands in configuration
86 files.
87
Lucas De Marchi92122612012-01-11 21:48:08 -020088* we don't use <module-dir>/modules.builtin{,.bin} indexes. Instead we rely on
89 module appearing on /sys/modules/* without a initstate file to determine if
90 it is builtin.
91
Lucas De Marchif5643942012-01-12 14:45:11 -020092* modprobe from m-i-t does not honour softdeps for install commands. E.g.:
93 config:
94
95 install bli "echo bli"
96 install bla "echo bla"
97 softdep bla pre: bli
98
99 With m-i-t, the output of 'modprobe --show-depends bla' will be:
100 install "echo bla"
101
102 While with kmod:
103 install "echo bli"
104 install "echo bla"
105
Lucas De Marchi5a96c5f2012-01-01 05:47:17 -0200106depmod
107------
108
109* there's no 'depmod -m' option: legacy modules.*map files are gone
Lucas De Marchie85b6732012-01-12 15:28:19 -0200110
111lsmod
112-----
113
114* information is parsed from /sys instead of /proc/modules