kwpar_unreghook Kernel Service
Purpose
Removes a previously registered workload partition (WPAR) callback hook.
Syntax
#include <sys/wparid.h>
Parameters
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. |
Description
The kwpar_unreghook kernel service informs workload partitions that the caller no longer wants to receive callouts for WPAR conditions.
Execution Environment
The kwpar_unreghook kernel service can be called from the process environment only.
Return Values
Item | Description |
---|---|
0 | Success. |
non-zero | Failure. |
Error Codes
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. |