'\" te .\" Copyright (c) 2007, 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] .TH LDI_EV_REMOVE_CALLBACKS 9F "Oct 24, 2012" .SH NAME ldi_ev_remove_callbacks \- remove all callbacks for a given callback ID .SH SYNOPSIS .nf #include \fBvoid\fR \fBldi_ev_remove_callbacks\fR(\fIldi_callback_id_t id\fR); .fi .SH INTERFACE LEVEL illumos DDI specific (illumos DDI) .SH PARAMETERS .ne 2 .na \fB\fIldi_callback_id_t id\fR\fR .ad .sp .6 .RS 4n An opaque data structure returned on successful calls to \fBldi_ev_register_callbacks\fR(9F). .RE .SH DESCRIPTION The \fBldi_ev_remove_callback()\fR function unregisters any callbacks that were registered via \fBldi_ev_register_callbacks\fR(9F). Once this function returns, the callback \fBID\fR is no longer valid. .sp .LP The finalize and notify callbacks exist independently of the \fBLDI\fR handle and are not automatically removed when the \fBLDI\fR handle is closed. The layered driver removes these callbacks via \fBldi_ev_remove_callbacks()\fR() when the callbacks are no longer needed. The \fBLDI\fR framework may panic the system if the entity registering the callback (a \fBdev_t\fR, \fBdip\fR or \fBmodule\fR) no longer exists on the system and the callbacks have not been unregistered. .SH RETURN VALUES None. .SH CONTEXT This function can be called from user and kernel contexts only. .SH SEE ALSO .BR ldi_ev_get_cookie (9F), .BR ldi_ev_register_callbacks (9F)