proch_unreg Kernel Service

Purpose

Unregisters a callout handler that was previously registered using the proch_reg kernel service.

Syntax

#include <sys/proc.h>
int proch_unreg(struct prochr *old_prochr);

Parameter

Item Description
old_prochr Specifies the address of the proch structure to be unregistered.

Description

Unregisters an existing callout handler that was previously registered using the proch_reg() kernel service.

Return Values

On successful completion, the proch_unreg kernel service returns a value of 0.  An error (non-zero) return occurs when trying to unregister a handler that is not presently registered.

Execution Environment

The proch_unreg kernel service can be called from the process environment only.