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.
|