blob: e3f81d144a91033967440335b1e73a3d4e967889 [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
Lucas De Marchie975fd32013-04-30 12:34:23 -03004* Add command for signing modules
5 - There is a script to sign modules in kernel tree, but we should be able to
6 sign modules by ourselves
7
8* Stop using NOFAIL() and fatal()
9
Lucas De Marchi681bf892013-04-23 21:21:00 -030010* Protect index against OOM
11
Lucas De Marchi46939ec2013-04-09 20:20:38 -030012* Implement actions in kmod tool like 'insert', 'remove', 'info', etc
13
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020014* testsuite:
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020015 - when fake delete_module() succeeds, remove its entry from /sys/module
Lucas De Marchibf89f762011-12-01 18:23:47 -020016
Lucas De Marchi46939ec2013-04-09 20:20:38 -030017* Stop using system() inside the library and use fork + exec instead
18
19* config: configs that do not need to be matched by fnmatch() could be using a
20 vector instead of a list. This way we could search in it by calling
21 bsearch().
22
Lucas De Marchic8c956b2012-06-11 12:00:19 -030023* review API, maybe unify all of these getters:
Gustavo Sverzut Barbieri674f8592011-12-20 11:54:53 -020024 - kmod_module_version_get_symbol()
25 - kmod_module_version_get_crc()
26 - kmod_module_symbol_get_symbol()
27 - kmod_module_symbol_get_crc()
28 - kmod_module_dependency_symbol_get_symbol()
29 - kmod_module_dependency_symbol_get_crc()
30 - kmod_module_versions_free_list()
31 - kmod_module_symbols_free_list()
Lucas De Marchi8836ff22012-11-05 02:04:44 -020032 - kmod_module_dependency_symbols_free_list()
Gustavo Sverzut Barbieri674f8592011-12-20 11:54:53 -020033
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020034* 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.
Lucas De Marchi5e690c52011-12-16 02:02:58 -020036
Lucas De Marchicc833642012-10-17 18:32:56 -030037* Finish removal of "rmmod -w" when it's gone from kernel.
38
39* Deprecate not using KMOD_REMOVE_NOWAIT on libkmod.
Lucas De Marchi8447b862012-08-30 14:10:47 -030040
Lucas De Marchi3af535c2011-12-27 17:32:55 -020041Things to be added/removed in kernel (check what is really needed):
Lucas De Marchi5e690c52011-12-16 02:02:58 -020042===================================================================
43
44* list of currently loaded modules
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020045 - readdir() in /sys/modules: dir without a 'initstate' file means the
46 module is builtin.
Lucas De Marchi5e690c52011-12-16 02:02:58 -020047
Lucas De Marchi5e690c52011-12-16 02:02:58 -020048* kill /proc/modules ?
Lucas De Marchi758428a2012-01-16 15:56:17 -020049 - Unlikely, given other tools might depend on it
Lucas De Marchi5a96c5f2012-01-01 05:47:17 -020050
Lucas De Marchi46939ec2013-04-09 20:20:38 -030051
52
Lucas De Marchi5a96c5f2012-01-01 05:47:17 -020053Things that are different from module-init-tools on purpose (!TODO)
54===================================================================
55
56modprobe
57--------
58
59* 'modprobe -l' was marked as deprecated and does not exist anymore
60
61* 'modprobe -t' is gone, together with 'modprobe -l'
62
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020063* there's and additional '--remove-dependencies' flags to modprobe so we
Lucas De Marchi5a96c5f2012-01-01 05:47:17 -020064 can remove modules depending on that one
65
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020066* modprobe doesn't parse configuration files with names not ending in
67 '.alias' or '.conf'. modprobe used to warn about these files.
Lucas De Marchi5a96c5f2012-01-01 05:47:17 -020068
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020069* modprobe doesn't parse 'config' and 'include' commands in configuration
Lucas De Marchi0ad5dd02012-01-11 00:28:12 -020070 files.
71
Lucas De Marchif5643942012-01-12 14:45:11 -020072* modprobe from m-i-t does not honour softdeps for install commands. E.g.:
73 config:
74
75 install bli "echo bli"
76 install bla "echo bla"
77 softdep bla pre: bli
78
79 With m-i-t, the output of 'modprobe --show-depends bla' will be:
80 install "echo bla"
81
82 While with kmod:
83 install "echo bli"
84 install "echo bla"
85
Lucas De Marchibc434962012-01-13 02:35:34 -020086* kmod doesn't dump the configuration as is in the config files. Instead it
87 dumps the configuration as it was parsed. Therefore, comments and file names
88 are not dumped, but on the good side we know what the exact configuration
89 kmod is using. We did this because if we only want to know the entire content
90 of configuration files, it's enough to use find(1) in modprobe.d directories
91
Lucas De Marchi5a96c5f2012-01-01 05:47:17 -020092depmod
93------
94
95* there's no 'depmod -m' option: legacy modules.*map files are gone
Lucas De Marchie85b6732012-01-12 15:28:19 -020096
97lsmod
98-----
99
100* information is parsed from /sys instead of /proc/modules