* 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
return 0;
}
+/*
+ * We don't increase the refcount. Maybe we should.
+ */
+KMOD_EXPORT struct kmod_list *kmod_module_get_dependency(struct kmod_module *mod)
+{
+ // FIXME calculate dependency if it's not initialized
+ return mod->dep;
+}
+
KMOD_EXPORT struct kmod_module *kmod_module_get_module(struct kmod_list *l)
{
struct kmod_module *mod = l->data;
struct kmod_module *kmod_module_unref(struct kmod_module *mod);
int kmod_module_unref_list(struct kmod_list *list);
struct kmod_module *kmod_module_get_module(struct kmod_list *l);
+struct kmod_list *kmod_module_get_dependency(struct kmod_module *mod);
int kmod_module_remove_module(struct kmod_module *mod, unsigned int flags);
int kmod_module_insert_module(struct kmod_module *mod, unsigned int flags);
kmod_module_remove_module;
kmod_module_insert_module;
+ kmod_module_get_dependency;
kmod_module_get_module;
kmod_module_get_name;