Displaying 1 result from an estimated 1 matches for "app_shutdown".
Did you mean:
ao_shutdown
2012 Dec 21
0
mini-os: Notify shutdown through weak function call instead of wake queue
...= 0;
-unsigned int shutdown_reason;
-DECLARE_WAIT_QUEUE_HEAD(shutdown_queue);
-#endif
-
void setup_xen_features(void)
{
xen_feature_info_t fi;
@@ -71,12 +65,19 @@
}
#ifdef CONFIG_XENBUS
+/* This should be overridden by the application we are linked against. */
+__attribute__((weak)) void app_shutdown(unsigned reason)
+{
+ printk("Shutdown requested: %d\n", reason);
+}
+
static void shutdown_thread(void *p)
{
const char *path = "control/shutdown";
const char *token = path;
xenbus_event_queue events = NULL;
char *shutdown, *err;
+ unsigned int shutd...