Unregisters an extension from getting notified in the event of a shutdown.
#include <sys/reboot.h>
int shutdown_notify_unreg(sn)
shutdown_notify_t *sn;
The shutdown_notify_unreg kernel service unregisters an extension from getting notified in the event of a shutdown. The extension passes in the shutdown_notify_t instance it wants to unregister. This function will fail if it is called after the SHUTDOWN_NOTIFY_HALT and SHUTDOWN_NOTIFY_REBOOT notification process has started.
Item | Description |
---|---|
sn | Pointer to a structure that the calling extension wants to unregister. |
Process environment only.
Item | Description |
---|---|
0 | Success |
EPERM | Attempted to unregister after final notification has started. |
EINVAL | Invalid argument passed. |