FreeBSD/sys/x86/x86/intr_machdep.c
/*
 * Register a new interrupt controller (PIC).  This is to support suspend
 * and resume where we suspend/resume controllers rather than individual
 * sources.  This also allows controllers with no active sources (such as
 * 8259As in a system using the APICs) to participate in suspend and resume.
 */
Register a new interrupt controller (PIC).  This is to support suspend
and resume where we suspend/resume controllers rather than individual
sources.  This also allows controllers with no active sources (such as
8259As in a system using the APICs) to participate in suspend and resume.
Register a new interrupt controller ( PIC ) . This is to support suspend and resume where we suspend / resume controllers rather than individual sources . This also allows controllers with no active sources ( such as 8259As in a system using the APICs ) to participate in suspend and resume .
int
intr_register_pic(struct pic *pic)
{
	int error;
	mtx_lock(&intr_table_lock);
	if (intr_pic_registered(pic))
		error = EBUSY;
	else {
		TAILQ_INSERT_TAIL(&pics, pic, pics);
		error = 0;
	}
	mtx_unlock(&intr_table_lock);
	return (error);
}
int intr_register_pic ( struct pic * pic ) { int error ; mtx_lock ( & intr_table_lock ) ; if ( intr_pic_registered ( pic ) ) error = EBUSY ; else { TAILQ_INSERT_TAIL ( & pics , pic , pics ) ; error = 0 ; } mtx_unlock ( & intr_table_lock ) ; return ( error ) ; }
Register a new interrupt controller (PIC).
Register a new interrupt controller ( PIC ) .