Lines Matching refs:ctx
74 static int load_module(struct kmod_ctx *ctx, const char *m) {
81 r = kmod_module_new_from_lookup(ctx, m, &modlist);
128 static int apply_file(struct kmod_ctx *ctx, const char *path, bool ignore_enoent) {
132 assert(ctx);
161 k = load_module(ctx, l);
217 struct kmod_ctx *ctx;
233 ctx = kmod_new(NULL, NULL);
234 if (!ctx) {
239 kmod_load_resources(ctx);
240 kmod_set_log_fn(ctx, systemd_kmod_log, NULL);
248 k = apply_file(ctx, argv[i], false);
258 k = load_module(ctx, *i);
272 k = apply_file(ctx, *fn, true);
279 kmod_unref(ctx);