FreeBSD/sys/netgraph/atm/uni/ng_uni.c
/*
 * Loading and unloading of node type
 */
Loading and unloading of node type
Loading and unloading of node type
static int
ng_uni_mod_event(module_t mod, int event, void *data)
{
	int error = 0;
	switch(event) {
	  case MOD_LOAD:
		uni_init();
		break;
	  case MOD_UNLOAD:
		uni_fini();
		break;
	  default:
		error = EOPNOTSUPP;
		break;
	}
	return (error);
}
static int ng_uni_mod_event ( module_t mod , int event , void * data ) { int error = 0 ; switch ( event ) { case MOD_LOAD : uni_init ( ) ; break ; case MOD_UNLOAD : uni_fini ( ) ; break ; default : error = EOPNOTSUPP ; break ; } return ( error ) ; }
Loading and unloading of node type
Loading and unloading of node type