Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/compat/opensolaris/kern/opensolaris.c
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
SYSINIT(opensolaris_register, SI_SUB_OPENSOLARIS, SI_ORDER_FIRST, opensolaris_load, NULL); | SYSINIT(opensolaris_register, SI_SUB_OPENSOLARIS, SI_ORDER_FIRST, opensolaris_load, NULL); | ||||
static void | static void | ||||
opensolaris_unload(void) | opensolaris_unload(void) | ||||
{ | { | ||||
mutex_destroy(&cpu_lock); | mutex_destroy(&cpu_lock); | ||||
} | } | ||||
SYSUNINIT(opensolaris_unregister, SI_SUB_OPENSOLARIS, SI_ORDER_FIRST, opensolaris_unload, NULL); | SYSUNINIT(opensolaris_unregister, SI_SUB_OPENSOLARIS, SI_ORDER_FIRST, opensolaris_unload); | ||||
static int | static int | ||||
opensolaris_modevent(module_t mod __unused, int type, void *data __unused) | opensolaris_modevent(module_t mod __unused, int type, void *data __unused) | ||||
{ | { | ||||
int error = 0; | int error = 0; | ||||
switch (type) { | switch (type) { | ||||
case MOD_LOAD: | case MOD_LOAD: | ||||
Show All 18 Lines |