sys/kern/kern_cputimer.c
static int
sysctl_cputimer_reglist(SYSCTL_HANDLER_ARGS)
{
    struct cputimer *scan;
    int error = 0;
    int loop = 0;

    /*
     * Build a list of available timers
     */
    SLIST_FOREACH(scan, &cputimerhead, next) {
	if (error == 0 && loop)
	    error = SYSCTL_OUT(req, " ", 1);
	if (error == 0)
	    error = SYSCTL_OUT(req, scan->name, strlen(scan->name));
	++loop;
    }
    return (error);
}
/************************************************************************
 *				SYSCTL SUPPORT				*
 ************************************************************************
 *
 * Note: the ability to change the systimer is not currently enabled
 * because it will mess up systimer calculations.  You have to live
 * with what is configured at boot.
 */
SYSCTL SUPPORT
Note: the ability to change the systimer is not currently enabled
because it will mess up systimer calculations.  You have to live
with what is configured at boot.
SYSCTL SUPPORT Note : the ability to change the systimer is not currently enabled because it will mess up systimer calculations . You have to live with what is configured at boot .
static int
sysctl_cputimer_reglist(SYSCTL_HANDLER_ARGS)
{
    struct cputimer *scan;
    int error = 0;
    int loop = 0;
    SLIST_FOREACH(scan, &cputimerhead, next) {
	if (error == 0 && loop)
	    error = SYSCTL_OUT(req, " ", 1);
	if (error == 0)
	    error = SYSCTL_OUT(req, scan->name, strlen(scan->name));
	++loop;
    }
    return (error);
}
static int sysctl_cputimer_reglist ( SYSCTL_HANDLER_ARGS ) { struct cputimer * scan ; int error = 0 ; int loop = 0 ; SLIST_FOREACH ( scan , & cputimerhead , next ) { if ( error == 0 && loop ) error = SYSCTL_OUT ( req , " " , 1 ) ; if ( error == 0 ) error = SYSCTL_OUT ( req , scan -> name , strlen ( scan -> name ) ) ; ++ loop ; } return ( error ) ; }
SYSCTL SUPPORT
 Note: the ability to change the systimer is not currently enabled
 because it will mess up systimer calculations.
SYSCTL SUPPORT Note : the ability to change the systimer is not currently enabled because it will mess up systimer calculations .
/*
     * Build a list of available timers
     */