Removes a previously registered workload partition (WPAR) callback hook.
#include <sys/wparid.h>
int kwpar_unreghook ( key)
regkey_t key;
Item | Description |
---|---|
key | The registration key of the hook that the caller wants to un-register. This key is equivalent to the key returned from a hook registration with the kwpar_reghook kernel service. |
The kwpar_unreghook kernel service informs workload partitions that the caller no longer wants to receive callouts for WPAR conditions.
The kwpar_unreghook kernel service can be called from the process environment only.
Item | Description |
---|---|
0 | Success. |
non-zero | Failure. |
The kwpar_unreghook service fails if one or more of the following errors occur:
Item | Description |
---|---|
EINVAL | Not a valid registration key. |
EPERM | Not allowed to un-register this key. |