]> rtime.felk.cvut.cz Git - jailhouse.git/blobdiff - driver/main.h
driver: Export driver lock and enabled flag
[jailhouse.git] / driver / main.h
diff --git a/driver/main.h b/driver/main.h
new file mode 100644 (file)
index 0000000..ae727ec
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * Jailhouse, a Linux-based partitioning hypervisor
+ *
+ * Copyright (c) Siemens AG, 2013-2015
+ *
+ * Authors:
+ *  Jan Kiszka <jan.kiszka@siemens.com>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2.  See
+ * the COPYING file in the top-level directory.
+ */
+
+#ifndef _JAILHOUSE_DRIVER_MAIN_H
+#define _JAILHOUSE_DRIVER_MAIN_H
+
+#include <linux/mutex.h>
+
+extern struct mutex jailhouse_lock;
+extern bool jailhouse_enabled;
+
+#endif /* !_JAILHOUSE_DRIVER_MAIN_H */