Home
last modified time | relevance | path

Searched refs:modules_by_name (Results 1 – 2 of 2) sorted by relevance

/external/kmod/libkmod/
Dlibkmod.c85 struct hash *modules_by_name; member
280 ctx->modules_by_name = hash_new(KMOD_HASH_SIZE, NULL); in kmod_new()
281 if (ctx->modules_by_name == NULL) { in kmod_new()
292 free(ctx->modules_by_name); in kmod_new()
334 hash_free(ctx->modules_by_name); in kmod_unref()
400 mod = hash_find(ctx->modules_by_name, key); in kmod_pool_get_module()
412 hash_add(ctx->modules_by_name, key, mod); in kmod_pool_add_module()
420 hash_del(ctx->modules_by_name, key); in kmod_pool_del_module()
748 hash_iter_init(ctx->modules_by_name, &iter); in kmod_set_modules_visited()
758 hash_iter_init(ctx->modules_by_name, &iter); in kmod_set_modules_required()
/external/kmod/tools/
Ddepmod.c822 struct hash *modules_by_name; member
882 depmod->modules_by_name = hash_new(512, NULL); in depmod_init()
883 if (depmod->modules_by_name == NULL) { in depmod_init()
897 hash_free(depmod->modules_by_name); in depmod_init()
912 hash_free(depmod->modules_by_name); in depmod_shutdown()
952 err = hash_add_unique(depmod->modules_by_name, mod->modname, mod); in depmod_module_add()
968 hash_del(depmod->modules_by_name, mod->modname); in depmod_module_add()
990 hash_del(depmod->modules_by_name, mod->modname); in depmod_module_del()
1075 mod = hash_find(depmod->modules_by_name, modname); in depmod_modules_search_file()
1229 hash_iter_init(depmod->modules_by_name, &module_iter); in depmod_modules_build_array()