FreeBSD/sys/arm/arm/intr.c
/*
 * Pre-format intrnames into an array of fixed-size strings containing spaces.
 * This allows us to avoid the need for an intermediate table of indices into
 * the names and counts arrays, while still meeting the requirements and
 * assumptions of vmstat(8) and the kdb "show intrcnt" command, the two
 * consumers of this data.
 */
Pre-format intrnames into an array of fixed-size strings containing spaces.
This allows us to avoid the need for an intermediate table of indices into
the names and counts arrays, while still meeting the requirements and
assumptions of vmstat(8) and the kdb "show intrcnt" command, the two
consumers of this data.
Pre - format intrnames into an array of fixed - size strings containing spaces . This allows us to avoid the need for an intermediate table of indices into the names and counts arrays while still meeting the requirements and assumptions of vmstat ( 8 ) and the kdb " show intrcnt " command the two consumers of this data .
static void
intr_init(void *unused)
{
	int i;
	for (i = 0; i < NIRQ; ++i) {
		snprintf(&intrnames[i * INTRNAME_LEN], INTRNAME_LEN, "%-*s",
		    INTRNAME_LEN - 1, "");
	}
}
static void intr_init ( void * unused ) { int i ; for ( i = 0 ; i < NIRQ ; ++ i ) { snprintf ( & intrnames [ i * INTRNAME_LEN ] , INTRNAME_LEN , " " , INTRNAME_LEN - 1 , " " ) ; } }
Pre-format intrnames into an array of fixed-size strings containing spaces.
Pre - format intrnames into an array of fixed - size strings containing spaces .