Lines Matching refs:mod
398 struct kmod_module *mod;
400 mod = hash_find(ctx->modules_by_name, key);
402 DBG(ctx, "get module name='%s' found=%p\n", key, mod);
404 return mod;
407 void kmod_pool_add_module(struct kmod_ctx *ctx, struct kmod_module *mod,
410 DBG(ctx, "add %p key='%s'\n", mod, key);
412 hash_add(ctx->modules_by_name, key, mod);
415 void kmod_pool_del_module(struct kmod_ctx *ctx, struct kmod_module *mod,
418 DBG(ctx, "del %p key='%s'\n", mod, key);
454 struct kmod_module *mod;
456 err = kmod_module_new_from_alias(ctx, name, realname->value, &mod);
463 *list = kmod_list_append(*list, mod);
535 struct kmod_module *mod;
537 err = kmod_module_new_from_name(ctx, name, &mod);
546 kmod_module_set_builtin(mod, true);
547 *list = kmod_list_append(*list, mod);
611 struct kmod_module *mod;
613 n = kmod_module_new_from_name(ctx, name, &mod);
620 *list = kmod_list_append(*list, mod);
621 kmod_module_parse_depline(mod, line);
642 struct kmod_module *mod;
645 modname, &mod);
652 *list = kmod_list_append(*list, mod);
676 struct kmod_module *mod;
678 err = kmod_module_new_from_name(ctx, modname, &mod);
685 node = kmod_list_append(*list, mod);
694 kmod_module_set_install_commands(mod, cmd);
712 struct kmod_module *mod;
714 err = kmod_module_new_from_name(ctx, modname, &mod);
721 node = kmod_list_append(*list, mod);
730 kmod_module_set_remove_commands(mod, cmd);