FreeBSD/sys/x86/xen/xen_intr.c
/**
 * Allocate and register a per-cpu Xen upcall interrupt counter.
 *
 * \param cpu  The cpu for which to register this interrupt count.
 */
Allocate and register a per-cpu Xen upcall interrupt counter.
\param cpu  The cpu for which to register this interrupt count.
Allocate and register a per - cpu Xen upcall interrupt counter . \ param cpu The cpu for which to register this interrupt count .
static void
xen_intr_intrcnt_add(u_int cpu)
{
	char buf[MAXCOMLEN + 1];
	struct xen_intr_pcpu_data *pcpu;
	pcpu = DPCPU_ID_PTR(cpu, xen_intr_pcpu);
	if (pcpu->evtchn_intrcnt != NULL)
		return;
	snprintf(buf, sizeof(buf), "cpu%d:xen", cpu);
	intrcnt_add(buf, &pcpu->evtchn_intrcnt);
}
static void xen_intr_intrcnt_add ( u_int cpu ) { char buf [ MAXCOMLEN + 1 ] ; struct xen_intr_pcpu_data * pcpu ; pcpu = DPCPU_ID_PTR ( cpu , xen_intr_pcpu ) ; if ( pcpu -> evtchn_intrcnt != NULL ) return ; snprintf ( buf , sizeof ( buf ) , " " , cpu ) ; intrcnt_add ( buf , & pcpu -> evtchn_intrcnt ) ; }
Allocate and register a per-cpu Xen upcall interrupt counter.
Allocate and register a per - cpu Xen upcall interrupt counter .