2011-12-02 03:23:47 +07:00
|
|
|
Features:
|
2011-12-16 11:02:58 +07:00
|
|
|
=========
|
2011-12-02 03:23:47 +07:00
|
|
|
|
2012-02-22 22:07:13 +07:00
|
|
|
* testsuite:
|
|
|
|
- when fake delete_module() succeeds, remove its entry from /sys/module
|
|
|
|
- add test for dependency loop _with install commands_ relying on module
|
|
|
|
already been loaded in order to succeed. E.g.: alsa install rules on
|
|
|
|
debian:
|
2011-12-02 03:23:47 +07:00
|
|
|
|
2012-02-22 22:07:13 +07:00
|
|
|
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; }
|
|
|
|
install snd_rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
|
|
|
|
install snd_emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }
|
|
|
|
install snd_pcm modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { modprobe --quiet snd-pcm-oss ; : ; }
|
|
|
|
install snd_mixer modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { modprobe --quiet snd-mixer-oss ; : ; }
|
|
|
|
install snd_seq modprobe --ignore-install snd-seq $CMDLINE_OPTS && { modprobe --quiet snd-seq-midi ; modprobe --quiet snd-seq-oss ; : ; }
|
2011-12-02 23:49:57 +07:00
|
|
|
|
2011-12-20 20:54:53 +07:00
|
|
|
* review API, maybe unify all of these setters:
|
|
|
|
- kmod_module_version_get_symbol()
|
|
|
|
- kmod_module_version_get_crc()
|
|
|
|
- kmod_module_symbol_get_symbol()
|
|
|
|
- kmod_module_symbol_get_crc()
|
|
|
|
- kmod_module_dependency_symbol_get_symbol()
|
|
|
|
- kmod_module_dependency_symbol_get_crc()
|
|
|
|
- kmod_module_versions_free_list()
|
|
|
|
- kmod_module_symbols_free_list()
|
|
|
|
- kmod_module_dependency_symbols_free_list()
|
|
|
|
|
2012-01-20 22:04:43 +07:00
|
|
|
* Stop using system() inside the library and use fork + exec instead
|
|
|
|
|
2012-02-22 22:07:13 +07:00
|
|
|
* config: configs that do not need to be matched by fnmatch() could be using a
|
|
|
|
vector instead of a list. This way we could search in it by calling
|
|
|
|
bsearch().
|
2011-12-16 11:02:58 +07:00
|
|
|
|
2012-02-22 22:07:13 +07:00
|
|
|
* index: drop the "open(), seek(), read()" implementation and use another one
|
|
|
|
with mmap(). When lookup() is called and the file is not mmaped, mmap it.
|
2011-12-16 11:02:58 +07:00
|
|
|
|
2012-04-17 06:20:48 +07:00
|
|
|
* Implement actions in kmod tool like 'insert', 'remove', 'info', etc
|
|
|
|
|
2011-12-28 02:32:55 +07:00
|
|
|
Things to be added/removed in kernel (check what is really needed):
|
2011-12-16 11:02:58 +07:00
|
|
|
===================================================================
|
|
|
|
|
|
|
|
* list of currently loaded modules
|
2012-02-22 22:07:13 +07:00
|
|
|
- readdir() in /sys/modules: dir without a 'initstate' file means the
|
|
|
|
module is builtin.
|
2011-12-16 11:02:58 +07:00
|
|
|
|
|
|
|
* module's size should be available under /sys
|
2012-01-17 00:56:17 +07:00
|
|
|
- DONE in 3.3: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=cca3e707301862ca9b9327e6a732463982f8cd1b
|
2011-12-14 23:02:28 +07:00
|
|
|
|
2011-12-16 11:02:58 +07:00
|
|
|
* kill /proc/modules ?
|
2012-01-17 00:56:17 +07:00
|
|
|
- Unlikely, given other tools might depend on it
|
2012-01-01 14:47:17 +07:00
|
|
|
|
|
|
|
Things that are different from module-init-tools on purpose (!TODO)
|
|
|
|
===================================================================
|
|
|
|
|
|
|
|
modprobe
|
|
|
|
--------
|
|
|
|
|
|
|
|
* 'modprobe -l' was marked as deprecated and does not exist anymore
|
|
|
|
|
|
|
|
* 'modprobe -t' is gone, together with 'modprobe -l'
|
|
|
|
|
2012-02-22 22:07:13 +07:00
|
|
|
* there's and additional '--remove-dependencies' flags to modprobe so we
|
2012-01-01 14:47:17 +07:00
|
|
|
can remove modules depending on that one
|
|
|
|
|
2012-02-22 22:07:13 +07:00
|
|
|
* modprobe doesn't parse configuration files with names not ending in
|
|
|
|
'.alias' or '.conf'. modprobe used to warn about these files.
|
2012-01-01 14:47:17 +07:00
|
|
|
|
2012-02-22 22:07:13 +07:00
|
|
|
* modprobe doesn't parse 'config' and 'include' commands in configuration
|
2012-01-11 09:28:12 +07:00
|
|
|
files.
|
|
|
|
|
2012-01-12 23:45:11 +07:00
|
|
|
* modprobe from m-i-t does not honour softdeps for install commands. E.g.:
|
|
|
|
config:
|
|
|
|
|
|
|
|
install bli "echo bli"
|
|
|
|
install bla "echo bla"
|
|
|
|
softdep bla pre: bli
|
|
|
|
|
|
|
|
With m-i-t, the output of 'modprobe --show-depends bla' will be:
|
|
|
|
install "echo bla"
|
|
|
|
|
|
|
|
While with kmod:
|
|
|
|
install "echo bli"
|
|
|
|
install "echo bla"
|
|
|
|
|
2012-01-13 11:35:34 +07:00
|
|
|
* kmod doesn't dump the configuration as is in the config files. Instead it
|
|
|
|
dumps the configuration as it was parsed. Therefore, comments and file names
|
|
|
|
are not dumped, but on the good side we know what the exact configuration
|
|
|
|
kmod is using. We did this because if we only want to know the entire content
|
|
|
|
of configuration files, it's enough to use find(1) in modprobe.d directories
|
|
|
|
|
2012-01-01 14:47:17 +07:00
|
|
|
depmod
|
|
|
|
------
|
|
|
|
|
|
|
|
* there's no 'depmod -m' option: legacy modules.*map files are gone
|
2012-01-13 00:28:19 +07:00
|
|
|
|
|
|
|
lsmod
|
|
|
|
-----
|
|
|
|
|
|
|
|
* information is parsed from /sys instead of /proc/modules
|