shutdown_notify_unreg Kernel Service

Purpose

Unregisters an extension from getting notified in the event of a shutdown.

Syntax

#include <sys/reboot.h>

int shutdown_notify_unreg(sn)
shutdown_notify_t *sn;

Description

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.

Parameters

Item Description
sn Pointer to a structure that the calling extension wants to unregister.

Execution Environment

Process environment only.

Return Values

Item Description
0 Success
EPERM Attempted to unregister after final notification has started.
EINVAL Invalid argument passed.