dtrace_modevent.c revision 179237
1204076Spjd/*
2231017Strociny * CDDL HEADER START
3204076Spjd *
4204076Spjd * The contents of this file are subject to the terms of the
5231017Strociny * Common Development and Distribution License (the "License").
6204076Spjd * You may not use this file except in compliance with the License.
7204076Spjd *
8204076Spjd * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9204076Spjd * or http://www.opensolaris.org/os/licensing.
10204076Spjd * See the License for the specific language governing permissions
11204076Spjd * and limitations under the License.
12204076Spjd *
13204076Spjd * When distributing Covered Code, include this CDDL HEADER in each
14204076Spjd * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15204076Spjd * If applicable, add the following below this CDDL HEADER, with the
16204076Spjd * fields enclosed by brackets "[]" replaced with your own identifying
17204076Spjd * information: Portions Copyright [yyyy] [name of copyright owner]
18204076Spjd *
19204076Spjd * CDDL HEADER END
20204076Spjd *
21204076Spjd * $FreeBSD: head/sys/cddl/dev/dtrace/dtrace_modevent.c 179237 2008-05-23 05:59:42Z jb $
22204076Spjd *
23204076Spjd */
24204076Spjd
25204076Spjd/* ARGSUSED */
26204076Spjdstatic int
27204076Spjddtrace_modevent(module_t mod __unused, int type, void *data __unused)
28204076Spjd{
29204076Spjd	int error = 0;
30204076Spjd
31231017Strociny	switch (type) {
32204076Spjd	case MOD_LOAD:
33204076Spjd		break;
34204076Spjd
35204076Spjd	case MOD_UNLOAD:
36204076Spjd		break;
37204076Spjd
38211397Sjoel	case MOD_SHUTDOWN:
39204076Spjd		break;
40235586Sgjb
41204076Spjd	default:
42204076Spjd		error = EOPNOTSUPP;
43204076Spjd		break;
44204076Spjd
45204076Spjd	}
46204076Spjd	return (error);
47204076Spjd}
48204076Spjd