xref: /illumos-gate/usr/src/man/man3picltree/ptree_unregister_handler.3picltree (revision 78a2e113edb6fe0a0382b403b55d92e8f0bba78f)
te
Copyright (c) 2000, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
PTREE_UNREGISTER_HANDLER 3PICLTREE "Aug 1, 2000"
NAME
ptree_unregister_handler - unregister the event handler for the event
SYNOPSIS

cc [flag .\|.\|.] file .\|.\|. -lpicltree [library .\|.\|.]
#include <picltree.h>

void ptree_register_handler(const char *ename,
 void (*evt_handler)(const char *ename, const void *earg,
 size_t size, void *cookie), void *cookie);
DESCRIPTION

The ptree_unregister_handler() function unregisters the event handler for the specified event. The argument ename specifies the name of the PICL event for which to unregister the handler. The argument evt_handler specifies the event handler function. The argument cookie is the pointer to the caller-specific data given at the time of registration of the handler.

If the handler being unregistered is currently executing, then this function will block until its completion. Because of this, locks acquired by the handlers should not be held across the call to ptree_unregister_handler() or a deadlock may result.

The ptree_unregister_handler() function must not be invoked from the handler that is being unregistered.

RETURN VALUES

This function does not return a value.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe
SEE ALSO

ptree_register_handler(3PICLTREE), attributes(5)