aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/kernel.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-11-30 09:32:27 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-11-30 09:32:27 +0000
commit5088edf797252b470d1e74f9125fae29fc026911 (patch)
tree8a410432b43e3486e334af8d09ddbe29cd36d99f /extras/mini-os/include/kernel.h
parente71632467f29cbb214f50352ee6216da8c1a7cab (diff)
downloadxen-5088edf797252b470d1e74f9125fae29fc026911.tar.gz
xen-5088edf797252b470d1e74f9125fae29fc026911.tar.bz2
xen-5088edf797252b470d1e74f9125fae29fc026911.zip
[minios] Add xenbus shutdown control support
Add a thread watching the xenbus shutdown control path and notifies a wait queue. Add HYPERVISOR_shutdown convenient inline for minios shutdown. Add proper shutdown to the minios test application. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'extras/mini-os/include/kernel.h')
-rw-r--r--extras/mini-os/include/kernel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/mini-os/include/kernel.h b/extras/mini-os/include/kernel.h
index b36f172ed8..78692e6c12 100644
--- a/extras/mini-os/include/kernel.h
+++ b/extras/mini-os/include/kernel.h
@@ -1,6 +1,9 @@
#ifndef _KERNEL_H_
#define _KERNEL_H_
+extern unsigned int do_shutdown;
+extern unsigned int shutdown_reason;
+extern struct wait_queue_head shutdown_queue;
extern void do_exit(void) __attribute__((noreturn));
extern void stop_kernel(void);