#include <resolv.h>
#include <linux/if.h>
+#include <libkmod.h>
#include "path-util.h"
#include "networkd.h"
return r;
}
+
+int manager_init_kmod_ctx(Manager *m) {
+ struct kmod_ctx *ctx;
+
+ assert(m);
+
+ ctx = kmod_new(NULL, NULL);
+ if (!ctx) {
+ return -ENOMEM;
+ }
+
+ m->kmod_ctx = ctx;
+
+ return 0;
+}