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