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 | |
| 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 |
| 6 | bsearch(). |
| 7 | |
Lucas De Marchi | c3325cf | 2011-12-02 14:49:57 -0200 | [diff] [blame] | 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. |
| 10 | |
Gustavo Sverzut Barbieri | c3d0a5f | 2011-12-11 19:36:18 -0200 | [diff] [blame] | 11 | * create test-mock library to be LD_PRELOAD'ed before running the binaries |
Gustavo Sverzut Barbieri | 7fe602b | 2011-12-10 13:32:27 -0200 | [diff] [blame] | 12 | so we're able to create unit tests |
Gustavo Sverzut Barbieri | c3d0a5f | 2011-12-11 19:36:18 -0200 | [diff] [blame] | 13 | |
Lucas De Marchi | 3af535c | 2011-12-27 17:32:55 -0200 | [diff] [blame^] | 14 | * Add functions to dump configuration. Create a list with the config items |
| 15 | (blacklist, aliases, etc) or just dump to a fd? |
Lucas De Marchi | d68ea2a | 2011-12-14 14:02:28 -0200 | [diff] [blame] | 16 | |
Lucas De Marchi | 3af535c | 2011-12-27 17:32:55 -0200 | [diff] [blame^] | 17 | * Add functions to list all modules known by modules.dep |
Lucas De Marchi | d68ea2a | 2011-12-14 14:02:28 -0200 | [diff] [blame] | 18 | |
Lucas De Marchi | d68ea2a | 2011-12-14 14:02:28 -0200 | [diff] [blame] | 19 | * provide 1:1 compatibility with module-init-tools's modprobe |
Lucas De Marchi | d68ea2a | 2011-12-14 14:02:28 -0200 | [diff] [blame] | 20 | - dump configuration |
Lucas De Marchi | 088a6a8 | 2011-12-26 16:05:19 -0200 | [diff] [blame] | 21 | - 'modprobe -r' should remove modules which usecount became 0 because of |
| 22 | module's removal |
Lucas De Marchi | d68ea2a | 2011-12-14 14:02:28 -0200 | [diff] [blame] | 23 | |
Lucas De Marchi | 3af535c | 2011-12-27 17:32:55 -0200 | [diff] [blame^] | 24 | * Add kmod_validate(). It checks if all config files and indexes are still |
| 25 | valid. We need to save the mtime of each config dir when starting up and when |
| 26 | this function is called we stat the dir and compare the mtimes. |
Gustavo Sverzut Barbieri | 674f859 | 2011-12-20 11:54:53 -0200 | [diff] [blame] | 27 | |
| 28 | * review API, maybe unify all of these setters: |
| 29 | - kmod_module_version_get_symbol() |
| 30 | - kmod_module_version_get_crc() |
| 31 | - kmod_module_symbol_get_symbol() |
| 32 | - kmod_module_symbol_get_crc() |
| 33 | - kmod_module_dependency_symbol_get_symbol() |
| 34 | - kmod_module_dependency_symbol_get_crc() |
| 35 | - kmod_module_versions_free_list() |
| 36 | - kmod_module_symbols_free_list() |
| 37 | - kmod_module_dependency_symbols_free_list() |
| 38 | |
Gustavo Sverzut Barbieri | f841e63 | 2011-12-19 11:37:08 -0200 | [diff] [blame] | 39 | * provide modules.archive, a cache file with all modules compressed |
| 40 | and a fast access. It's like a tar.gz, but with each entry |
| 41 | compressed as opposed to the whole tar compressed, easy to pick |
| 42 | individual entries, that is, more like .gz.tar. As zlib compression |
| 43 | does not store the uncompressed file size, this could provide |
| 44 | it. The file format should be something like: |
| 45 | MAGIC-ID |
| 46 | DIRECTORY-ENTRY-SIZE |
| 47 | DIRECTORY (hash-like format, points to file offset and size) |
| 48 | ENTRIES (each is a compressed module) |
| 49 | Helper binary to: |
| 50 | kmod-archive list |
| 51 | kmod-archive add path.ko |
| 52 | kmod-archive rm path.ko |
| 53 | kmod-archive get path.ko |
| 54 | kmod-archive exists path.ko |
| 55 | |
Lucas De Marchi | 5e690c5 | 2011-12-16 02:02:58 -0200 | [diff] [blame] | 56 | Known Bugs: |
| 57 | =========== |
| 58 | |
Lucas De Marchi | 5e690c5 | 2011-12-16 02:02:58 -0200 | [diff] [blame] | 59 | |
Lucas De Marchi | 3af535c | 2011-12-27 17:32:55 -0200 | [diff] [blame^] | 60 | 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] | 61 | =================================================================== |
| 62 | |
| 63 | * list of currently loaded modules |
| 64 | |
| 65 | * module's size should be available under /sys |
| 66 | |
| 67 | * kill /proc/modules ? |