xref: /freebsd/sys/cddl/dev/dtrace/dtrace_modevent.c (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
191eaf3e1SJohn Birrell /*
291eaf3e1SJohn Birrell  * CDDL HEADER START
391eaf3e1SJohn Birrell  *
491eaf3e1SJohn Birrell  * The contents of this file are subject to the terms of the
591eaf3e1SJohn Birrell  * Common Development and Distribution License (the "License").
691eaf3e1SJohn Birrell  * You may not use this file except in compliance with the License.
791eaf3e1SJohn Birrell  *
891eaf3e1SJohn Birrell  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
991eaf3e1SJohn Birrell  * or http://www.opensolaris.org/os/licensing.
1091eaf3e1SJohn Birrell  * See the License for the specific language governing permissions
1191eaf3e1SJohn Birrell  * and limitations under the License.
1291eaf3e1SJohn Birrell  *
1391eaf3e1SJohn Birrell  * When distributing Covered Code, include this CDDL HEADER in each
1491eaf3e1SJohn Birrell  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1591eaf3e1SJohn Birrell  * If applicable, add the following below this CDDL HEADER, with the
1691eaf3e1SJohn Birrell  * fields enclosed by brackets "[]" replaced with your own identifying
1791eaf3e1SJohn Birrell  * information: Portions Copyright [yyyy] [name of copyright owner]
1891eaf3e1SJohn Birrell  *
1991eaf3e1SJohn Birrell  * CDDL HEADER END
2091eaf3e1SJohn Birrell  *
2191eaf3e1SJohn Birrell  */
2291eaf3e1SJohn Birrell 
2391eaf3e1SJohn Birrell /* ARGSUSED */
2491eaf3e1SJohn Birrell static int
dtrace_modevent(module_t mod __unused,int type,void * data __unused)2591eaf3e1SJohn Birrell dtrace_modevent(module_t mod __unused, int type, void *data __unused)
2691eaf3e1SJohn Birrell {
2791eaf3e1SJohn Birrell 	int error = 0;
2891eaf3e1SJohn Birrell 
2991eaf3e1SJohn Birrell 	switch (type) {
3091eaf3e1SJohn Birrell 	case MOD_LOAD:
3191eaf3e1SJohn Birrell 		break;
3291eaf3e1SJohn Birrell 
3391eaf3e1SJohn Birrell 	case MOD_UNLOAD:
3491eaf3e1SJohn Birrell 		break;
3591eaf3e1SJohn Birrell 
3691eaf3e1SJohn Birrell 	case MOD_SHUTDOWN:
3791eaf3e1SJohn Birrell 		break;
3891eaf3e1SJohn Birrell 
3991eaf3e1SJohn Birrell 	default:
4091eaf3e1SJohn Birrell 		error = EOPNOTSUPP;
4191eaf3e1SJohn Birrell 		break;
4291eaf3e1SJohn Birrell 
4391eaf3e1SJohn Birrell 	}
4491eaf3e1SJohn Birrell 	return (error);
4591eaf3e1SJohn Birrell }
46