/*
* CDDL HEADER START
*
* 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
* 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]
*
* CDDL HEADER END
*/
/*
*/
#include <sys/socketvar.h>
/*
* This is the loadable module wrapper.
*/
"sockfs",
};
/*
* Module linkage information for the kernel.
*/
};
};
int
_init(void)
{
int ret;
/*
* We want to be informed each time a zone is created or
* destroyed in the kernel, so we can maintain per-zone
* kstat. sock_kstat_init() will also be called for the
* global zone, without us having to special case it here.
*/
(void) zone_key_delete(sockfs_zone_key);
}
return (ret);
}
int
{
}
int
_fini(void)
{
/* zone_key_delete(sockfs_zone_key); - if we were ever to be unloaded */
return (EBUSY);
}
/*
* N.B.
* No _fini routine. This module cannot be unloaded once loaded.
* The NO_UNLOAD_STUB in modstub.s must change if this module ever
* is modified to become unloadable.
*/