FreeBSD/sys/netinet/siftr.c
/*
 * Module has just been loaded into the kernel.
 */
Module has just been loaded into the kernel.
Module has just been loaded into the kernel .
static int
init_siftr(void)
{
	EVENTHANDLER_REGISTER(shutdown_pre_sync, siftr_shutdown_handler, NULL,
	    SHUTDOWN_PRI_FIRST);
	counter_hash = hashinit(SIFTR_EXPECTED_MAX_TCP_FLOWS, M_SIFTR,
	    &siftr_hashmask);
	mtx_init(&siftr_pkt_queue_mtx, "siftr_pkt_queue_mtx", NULL, MTX_DEF);
	mtx_init(&siftr_pkt_mgr_mtx, "siftr_pkt_mgr_mtx", NULL, MTX_DEF);
	uprintf("\nStatistical Information For TCP Research (SIFTR) %s\n"
	    "          http://caia.swin.edu.au/urp/newtcp\n\n",
	    MODVERSION_STR);
	return (0);
}
static int init_siftr ( void ) { EVENTHANDLER_REGISTER ( shutdown_pre_sync , siftr_shutdown_handler , NULL , SHUTDOWN_PRI_FIRST ) ; counter_hash = hashinit ( SIFTR_EXPECTED_MAX_TCP_FLOWS , M_SIFTR , & siftr_hashmask ) ; mtx_init ( & siftr_pkt_queue_mtx , " " , NULL , MTX_DEF ) ; mtx_init ( & siftr_pkt_mgr_mtx , " " , NULL , MTX_DEF ) ; uprintf ( " \n \n " " \n \n " , MODVERSION_STR ) ; return ( 0 ) ; }
Module has just been loaded into the kernel.
Module has just been loaded into the kernel .
/* Initialise our flow counter hash table. */ /* Print message to the user's current terminal. */