Path: blob/main/sys/cddl/dev/dtrace/dtrace_modevent.c
48254 views
/*1* CDDL HEADER START2*3* The contents of this file are subject to the terms of the4* Common Development and Distribution License (the "License").5* You may not use this file except in compliance with the License.6*7* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE8* or http://www.opensolaris.org/os/licensing.9* See the License for the specific language governing permissions10* and limitations under the License.11*12* When distributing Covered Code, include this CDDL HEADER in each13* file and include the License file at usr/src/OPENSOLARIS.LICENSE.14* If applicable, add the following below this CDDL HEADER, with the15* fields enclosed by brackets "[]" replaced with your own identifying16* information: Portions Copyright [yyyy] [name of copyright owner]17*18* CDDL HEADER END19*20*/2122/* ARGSUSED */23static int24dtrace_modevent(module_t mod __unused, int type, void *data __unused)25{26int error = 0;2728switch (type) {29case MOD_LOAD:30break;3132case MOD_UNLOAD:33break;3435case MOD_SHUTDOWN:36break;3738default:39error = EOPNOTSUPP;40break;4142}43return (error);44}454647