From: Gustavo Sverzut Barbieri Date: Sat, 10 Dec 2011 15:32:27 +0000 (-0200) Subject: update TODO X-Git-Tag: v1~55^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fe602b6891f7ea86f975e03d0e1269259237fcd;p=thirdparty%2Fkmod.git update TODO --- diff --git a/TODO b/TODO index d09f93f9..a991086d 100644 --- a/TODO +++ b/TODO @@ -10,31 +10,9 @@ Features: * 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. -* provide a kmod_preload_resources() so configs are parsed and files are mmaped - with MAP_POPULATE | MAP_LOCKED. Maybe it's a good idea to have a - kmod_unload_resources() too. - -* kmod_module: create a mempool with live and recently de-allocated modules. - This way we don't have to create a new one, parse dependencies and whatnot. - Just pick the already created node. - -* kmod_module: apply blacklist on module lookup. What's best? Return the whole - list and provide functions like kmod_module_filter_* or return the list - already filtered? - ^-- investigate the best API - * insmod and rmmod with dependency handling. Maybe this should be done by the binary, and it's sufficient to return only the lists from lookups. ^-- investigate the best API -* when preloading stuff, give the possibility to preload binary files. We need - to create alternative index_search* functions to operate on mmapped files. - Then on ctx creation we mmap all the files - -* kmod_module: calculate fields on demand if not available: - - name - - path - - dependency - -* index: check implementations in order to allocate less stuff. There some - malloc()s that could be avoided +* create test-mock library to be LD_PRELOA'ed before running the binaries + so we're able to create unit tests