Displaying 2 results from an estimated 2 matches for "reboot_notifi".
Did you mean:
reboot_notify
2021 Mar 07
1
Request For Additional Status Confirmation
Thanks, Roger, I thought I was replying to the list, but apparently not.
So perhaps this will help someone else who has a similar situation.
I wasn't clear enough in my initial question...it isn't so much that I
want the status of the UPS, rather I want to know that the Pi is
operational again after upsmon has shutdown the Pi and then the UPS has
had power restored to it.
I created a
2013 Nov 08
4
[PATCH 3/4] xen/manage: Guard against user-space initiated poweroff and XenBus.
....callback = shutdown_handler
};
+static struct notifier_block xen_shutdown_notifier = {
+ .notifier_call = xen_system_reboot,
+};
+
static int setup_shutdown_watcher(void)
{
int err;
@@ -319,7 +348,11 @@ static int setup_shutdown_watcher(void)
return err;
}
#endif
-
+ err = register_reboot_notifier(&xen_shutdown_notifier);
+ if (err) {
+ pr_warn("Failed to register shutdown notifier\n");
+ return err;
+ }
return 0;
}
--
1.8.3.1