sys/kern/kern_cputimer.c
void
cputimer_register(struct cputimer *timer)
{
    struct cputimer *scan;

    /*
     * Initialize dummy_cputimer if the slist is empty, it does not get
     * registered the normal way.
     */
    if (SLIST_EMPTY(&cputimerhead))
	SLIST_FIRST(&cputimerhead) = &dummy_cputimer;
    SLIST_FOREACH(scan, &cputimerhead, next) {
	if (scan == timer)
	    return;
    }
    SLIST_INSERT_HEAD(&cputimerhead, timer, next);
}
/*
 * Register a timer.  If the timer has already been registered, do nothing.
 */
Register a timer.  If the timer has already been registered, do nothing.
Register a timer . If the timer has already been registered do nothing .
void
cputimer_register(struct cputimer *timer)
{
    struct cputimer *scan;
    if (SLIST_EMPTY(&cputimerhead))
	SLIST_FIRST(&cputimerhead) = &dummy_cputimer;
    SLIST_FOREACH(scan, &cputimerhead, next) {
	if (scan == timer)
	    return;
    }
    SLIST_INSERT_HEAD(&cputimerhead, timer, next);
}
void cputimer_register ( struct cputimer * timer ) { struct cputimer * scan ; if ( SLIST_EMPTY ( & cputimerhead ) ) SLIST_FIRST ( & cputimerhead ) = & dummy_cputimer ; SLIST_FOREACH ( scan , & cputimerhead , next ) { if ( scan == timer ) return ; } SLIST_INSERT_HEAD ( & cputimerhead , timer , next ) ; }
Register a timer.
Register a timer .
/*
     * Initialize dummy_cputimer if the slist is empty, it does not get
     * registered the normal way.
     */