blob: 039913f6214fb1dbf70b20616066a9cb0870a7ba [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 Marchi80e54cb2012-02-22 13:07:13 -02004* testsuite:
Lucas De Marchi80e54cb2012-02-22 13:07:13 -02005 - when fake delete_module() succeeds, remove its entry from /sys/module
Lucas De Marchibf89f762011-12-01 18:23:47 -02006
Lucas De Marchi8836ff22012-11-05 02:04:44 -02007* unify logging functions of tools/{modprobe.c,depmod.c,...}
8
Lucas De Marchic8c956b2012-06-11 12:00:19 -03009* review API, maybe unify all of these getters:
Gustavo Sverzut Barbieri674f8592011-12-20 11:54:53 -020010 - kmod_module_version_get_symbol()
11 - kmod_module_version_get_crc()
12 - kmod_module_symbol_get_symbol()
13 - kmod_module_symbol_get_crc()
14 - kmod_module_dependency_symbol_get_symbol()
15 - kmod_module_dependency_symbol_get_crc()
16 - kmod_module_versions_free_list()
17 - kmod_module_symbols_free_list()
Lucas De Marchi8836ff22012-11-05 02:04:44 -020018 - kmod_module_dependency_symbols_free_list()
Gustavo Sverzut Barbieri674f8592011-12-20 11:54:53 -020019
Lucas De Marchia41b39f2012-01-20 13:04:43 -020020* Stop using system() inside the library and use fork + exec instead
21
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020022* config: configs that do not need to be matched by fnmatch() could be using a
23 vector instead of a list. This way we could search in it by calling
24 bsearch().
Lucas De Marchi9207df72012-02-14 21:57:35 -020025
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020026* index: drop the "open(), seek(), read()" implementation and use another one
27 with mmap(). When lookup() is called and the file is not mmaped, mmap it.
Lucas De Marchi5e690c52011-12-16 02:02:58 -020028
Lucas De Marchi94618932012-04-16 20:20:48 -030029* Implement actions in kmod tool like 'insert', 'remove', 'info', etc
30
Lucas De Marchicc833642012-10-17 18:32:56 -030031* Finish removal of "rmmod -w" when it's gone from kernel.
32
33* Deprecate not using KMOD_REMOVE_NOWAIT on libkmod.
Lucas De Marchi8447b862012-08-30 14:10:47 -030034
Lucas De Marchi3af535c2011-12-27 17:32:55 -020035Things to be added/removed in kernel (check what is really needed):
Lucas De Marchi5e690c52011-12-16 02:02:58 -020036===================================================================
37
38* list of currently loaded modules
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020039 - readdir() in /sys/modules: dir without a 'initstate' file means the
40 module is builtin.
Lucas De Marchi5e690c52011-12-16 02:02:58 -020041
42* module's size should be available under /sys
Lucas De Marchi758428a2012-01-16 15:56:17 -020043 - DONE in 3.3: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=cca3e707301862ca9b9327e6a732463982f8cd1b
Lucas De Marchi5e690c52011-12-16 02:02:58 -020044
45* kill /proc/modules ?
Lucas De Marchi758428a2012-01-16 15:56:17 -020046 - Unlikely, given other tools might depend on it
Lucas De Marchi5a96c5f2012-01-01 05:47:17 -020047
48Things that are different from module-init-tools on purpose (!TODO)
49===================================================================
50
51modprobe
52--------
53
54* 'modprobe -l' was marked as deprecated and does not exist anymore
55
56* 'modprobe -t' is gone, together with 'modprobe -l'
57
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020058* there's and additional '--remove-dependencies' flags to modprobe so we
Lucas De Marchi5a96c5f2012-01-01 05:47:17 -020059 can remove modules depending on that one
60
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020061* modprobe doesn't parse configuration files with names not ending in
62 '.alias' or '.conf'. modprobe used to warn about these files.
Lucas De Marchi5a96c5f2012-01-01 05:47:17 -020063
Lucas De Marchi80e54cb2012-02-22 13:07:13 -020064* modprobe doesn't parse 'config' and 'include' commands in configuration
Lucas De Marchi0ad5dd02012-01-11 00:28:12 -020065 files.
66
Lucas De Marchif5643942012-01-12 14:45:11 -020067* modprobe from m-i-t does not honour softdeps for install commands. E.g.:
68 config:
69
70 install bli "echo bli"
71 install bla "echo bla"
72 softdep bla pre: bli
73
74 With m-i-t, the output of 'modprobe --show-depends bla' will be:
75 install "echo bla"
76
77 While with kmod:
78 install "echo bli"
79 install "echo bla"
80
Lucas De Marchibc434962012-01-13 02:35:34 -020081* kmod doesn't dump the configuration as is in the config files. Instead it
82 dumps the configuration as it was parsed. Therefore, comments and file names
83 are not dumped, but on the good side we know what the exact configuration
84 kmod is using. We did this because if we only want to know the entire content
85 of configuration files, it's enough to use find(1) in modprobe.d directories
86
Lucas De Marchi5a96c5f2012-01-01 05:47:17 -020087depmod
88------
89
90* there's no 'depmod -m' option: legacy modules.*map files are gone
Lucas De Marchie85b6732012-01-12 15:28:19 -020091
92lsmod
93-----
94
95* information is parsed from /sys instead of /proc/modules