bignum_mod.c revision 6557:c6c4f66aed66
1245614Sandrew/* 2245614Sandrew * CDDL HEADER START 3245614Sandrew * 4245614Sandrew * The contents of this file are subject to the terms of the 5245614Sandrew * Common Development and Distribution License (the "License"). 6245614Sandrew * You may not use this file except in compliance with the License. 7245614Sandrew * 8245614Sandrew * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9245614Sandrew * or http://www.opensolaris.org/os/licensing. 10245614Sandrew * See the License for the specific language governing permissions 11245614Sandrew * and limitations under the License. 12245614Sandrew * 13245614Sandrew * When distributing Covered Code, include this CDDL HEADER in each 14245614Sandrew * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15245614Sandrew * If applicable, add the following below this CDDL HEADER, with the 16245614Sandrew * fields enclosed by brackets "[]" replaced with your own identifying 17245614Sandrew * information: Portions Copyright [yyyy] [name of copyright owner] 18245614Sandrew * 19245614Sandrew * CDDL HEADER END 20245614Sandrew */ 21245614Sandrew/* 22245614Sandrew * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23245614Sandrew * Use is subject to license terms. 24245614Sandrew */ 25251034Sed 26245614Sandrew#pragma ident "%Z%%M% %I% %E% SMI" 27245614Sandrew 28245614Sandrew 29245614Sandrew#include <sys/types.h> 30245614Sandrew#include <sys/systm.h> 31245614Sandrew#include <sys/modctl.h> 32245614Sandrew#include <sys/cmn_err.h> 33245614Sandrew#include <sys/ddi.h> 34245614Sandrew 35245614Sandrew 36245614Sandrewextern struct mod_ops mod_cryptoops; 37245614Sandrew 38245614Sandrew/* 39245614Sandrew * Module linkage information for the kernel. 40245614Sandrew */ 41245614Sandrewstatic struct modlmisc modlmisc = { 42245614Sandrew &mod_miscops, "bignum utility module" 43245614Sandrew}; 44245614Sandrew 45245614Sandrewstatic struct modlinkage modlinkage = { 46245614Sandrew MODREV_1, (void *)&modlmisc, NULL 47245614Sandrew}; 48245614Sandrew 49245614Sandrew 50245614Sandrewint 51245614Sandrew_init(void) 52245614Sandrew{ 53245614Sandrew return (mod_install(&modlinkage)); 54245614Sandrew} 55245614Sandrew 56245614Sandrewint 57245614Sandrew_fini(void) 58245614Sandrew{ 59245614Sandrew return (mod_remove(&modlinkage)); 60245614Sandrew} 61245614Sandrew 62245614Sandrewint 63245614Sandrew_info(struct modinfo *modinfop) 64245614Sandrew{ 65245614Sandrew return (mod_info(&modlinkage, modinfop)); 66245614Sandrew} 67245614Sandrew