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
8 * 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.
11 * create test-mock library to be LD_PRELOAD'ed before running the binaries
12 so we're able to create unit tests
14 * Add functions to dump configuration. Create a list with the config items
15 (blacklist, aliases, etc) or just dump to a fd?
17 * Add functions to list all modules known by modules.dep
19 * provide 1:1 compatibility with module-init-tools's modprobe
21 - deal with dependency loop
22 - fix dependency listing in --show-depends
23 $ modprobe -S 3.2.0-2-ARCH --show-depends ahci
24 insmod /lib/modules/3.2.0-2-ARCH/kernel/drivers/scsi/scsi_mod.ko.gz
25 insmod /lib/modules/3.2.0-2-ARCH/kernel/drivers/scsi/scsi_mod.ko.gz
26 insmod /lib/modules/3.2.0-2-ARCH/kernel/drivers/ata/libata.ko.gz
27 insmod /lib/modules/3.2.0-2-ARCH/kernel/drivers/scsi/scsi_mod.ko.gz
28 insmod /lib/modules/3.2.0-2-ARCH/kernel/drivers/scsi/scsi_mod.ko.gz
29 insmod /lib/modules/3.2.0-2-ARCH/kernel/drivers/ata/libata.ko.gz
30 insmod /lib/modules/3.2.0-2-ARCH/kernel/drivers/ata/libahci.ko.gz
31 insmod /lib/modules/3.2.0-2-ARCH/kernel/drivers/ata/ahci.ko.gz
33 * Add manpages: copy them from module-init-tools and make the necessary changes
35 * review API, maybe unify all of these setters:
36 - kmod_module_version_get_symbol()
37 - kmod_module_version_get_crc()
38 - kmod_module_symbol_get_symbol()
39 - kmod_module_symbol_get_crc()
40 - kmod_module_dependency_symbol_get_symbol()
41 - kmod_module_dependency_symbol_get_crc()
42 - kmod_module_versions_free_list()
43 - kmod_module_symbols_free_list()
44 - kmod_module_dependency_symbols_free_list()
46 * provide modules.archive, a cache file with all modules compressed
47 and a fast access. It's like a tar.gz, but with each entry
48 compressed as opposed to the whole tar compressed, easy to pick
49 individual entries, that is, more like .gz.tar. As zlib compression
50 does not store the uncompressed file size, this could provide
51 it. The file format should be something like:
54 DIRECTORY (hash-like format, points to file offset and size)
55 ENTRIES (each is a compressed module)
58 kmod-archive add path.ko
59 kmod-archive rm path.ko
60 kmod-archive get path.ko
61 kmod-archive exists path.ko
67 Things to be added/removed in kernel (check what is really needed):
68 ===================================================================
70 * list of currently loaded modules
72 * module's size should be available under /sys
74 * kill /proc/modules ?
76 Things that are different from module-init-tools on purpose (!TODO)
77 ===================================================================
82 * 'modprobe -l' was marked as deprecated and does not exist anymore
84 * 'modprobe -t' is gone, together with 'modprobe -l'
86 * there's and additional '--remove-dependencies' flags to kmod-modprobe so we
87 can remove modules depending on that one
89 * kmod-modprobe doesn't parse configuration files whose name don't end on
90 '.alias' or '.conf'. modprobe used to warn about these files.
92 * kmod-modprobe doesn't parse 'config' and 'include' commands in configuration
95 * we don't use <module-dir>/modules.builtin{,.bin} indexes. Instead we rely on
96 module appearing on /sys/modules/* without a initstate file to determine if
99 * modprobe from m-i-t does not honour softdeps for install commands. E.g.:
102 install bli "echo bli"
103 install bla "echo bla"
106 With m-i-t, the output of 'modprobe --show-depends bla' will be:
116 * there's no 'depmod -m' option: legacy modules.*map files are gone