rem: SHOW_FLOW( 2, "uniniting module %s...\n", module->name ); res = module->ptr->std_ops(B_MODULE_UNINIT); SHOW_FLOW( 2, "...done (%s)\n", strerror( res ));
add: case MODULE_READY: { status_t status;
context: uninit_module(module *module){	switch( module->state ) {		case MOD_QUERIED:		case MOD_LOADED:			return B_NO_ERROR;		case MOD_INIT:			panic( "Trying to unload module %s which is initializing\n", 				module->name );			return B_ERROR;		case MOD_UNINIT:			panic( "Trying to unload module %s which is un-initializing\n", module->name );			return B_ERROR;				case MOD_RDY:			{				int res;							module->state = MOD_UNINIT;				SHOW_FLOW( 2, "uniniting module %s...\n", module->name );				res = module->ptr->std_ops(B_MODULE_UNINIT);				SHOW_FLOW( 2, "...done (%s)\n", strerror( res ));				if (res == B_NO_ERROR ) {					module->state = MOD_LOADED;					return 0;				}							SHOW_ERROR( 0, "Error unloading module %s (%i)\n", module->name, res );			}					module->state = MOD_ERROR;			module->keep_loaded = true;					// fall through		default:				return B_ERROR;			}}