sys/netiso/tp_timer.c
/*
 * CALLED FROM:
 *  at autoconfig time from tp_init() 
 * 	a combo of event, state, predicate
 * FUNCTION and ARGUMENTS:
 *  initialize data structures for the timers
 */
CALLED FROM:
at autoconfig time from tp_init()
a combo of event, state, predicate
FUNCTION and ARGUMENTS:
initialize data structures for the timers
CALLED FROM : at autoconfig time from tp_init () a combo of event state predicate FUNCTION and ARGUMENTS : initialize data structures for the timers
void
tp_timerinit()
{
	register int s;
	if (tp_refinfo.tpr_base)
		return;
	tp_refinfo.tpr_size = N_TPREF + 1;  
	s = sizeof(*tp_ref) * tp_refinfo.tpr_size;
	if ((tp_ref = (struct tp_ref *) malloc(s, M_PCB, M_NOWAIT)) == 0)
		panic("tp_timerinit");
	bzero((caddr_t)tp_ref, (unsigned) s);
	tp_refinfo.tpr_base = tp_ref;
	tp_rttdiv = hz / PR_SLOWHZ;
	tp_rttadd = (2 * tp_rttdiv) - 1;
}
void tp_timerinit ( ) { register int s ; if ( tp_refinfo . tpr_base ) return ; tp_refinfo . tpr_size = N_TPREF + 1 ; s = sizeof ( * tp_ref ) * tp_refinfo . tpr_size ; if ( ( tp_ref = ( struct tp_ref * ) malloc ( s , M_PCB , M_NOWAIT ) ) == 0 ) panic ( " " ) ; bzero ( ( caddr_t ) tp_ref , ( unsigned ) s ) ; tp_refinfo . tpr_base = tp_ref ; tp_rttdiv = hz / PR_SLOWHZ ; tp_rttadd = ( 2 * tp_rttdiv ) - 1 ; }
CALLED FROM:
  at autoconfig time from tp_init()
      a combo of event, state, predicate
 FUNCTION and ARGUMENTS:
  initialize data structures for the timers
CALLED FROM : at autoconfig time from tp_init () a combo of event state predicate FUNCTION and ARGUMENTS : initialize data structures for the timers
/*
	 * Initialize storage
	 */ /* Need to start somewhere */