FreeBSD/sys/kern/kern_intr.c
/*
 * Dump details about a event.
 */
Dump details about a event.
Dump details about a event .
void
db_dump_intr_event(struct intr_event *ie, int handlers)
{
	struct intr_handler *ih;
	struct intr_thread *it;
	int comma;
	db_printf("%s ", ie->ie_fullname);
	it = ie->ie_thread;
	if (it != NULL)
		db_printf("(pid %d)", it->it_thread->td_proc->p_pid);
	else
		db_printf("(no thread)");
	if ((ie->ie_flags & (IE_SOFT | IE_ENTROPY | IE_ADDING_THREAD)) != 0 ||
	    (it != NULL && it->it_need)) {
		db_printf(" {");
		comma = 0;
		if (ie->ie_flags & IE_SOFT) {
			db_printf("SOFT");
			comma = 1;
		}
		if (ie->ie_flags & IE_ENTROPY) {
			if (comma)
				db_printf(", ");
			db_printf("ENTROPY");
			comma = 1;
		}
		if (ie->ie_flags & IE_ADDING_THREAD) {
			if (comma)
				db_printf(", ");
			db_printf("ADDING_THREAD");
			comma = 1;
		}
		if (it != NULL && it->it_need) {
			if (comma)
				db_printf(", ");
			db_printf("NEED");
		}
		db_printf("}");
	}
	db_printf("\n");
	if (handlers)
		TAILQ_FOREACH(ih, &ie->ie_handlers, ih_next)
		    db_dump_intrhand(ih);
}
void db_dump_intr_event ( struct intr_event * ie , int handlers ) { struct intr_handler * ih ; struct intr_thread * it ; int comma ; db_printf ( " " , ie -> ie_fullname ) ; it = ie -> ie_thread ; if ( it != NULL ) db_printf ( " " , it -> it_thread -> td_proc -> p_pid ) ; else db_printf ( " " ) ; if ( ( ie -> ie_flags & ( IE_SOFT | IE_ENTROPY | IE_ADDING_THREAD ) ) != 0 || ( it != NULL && it -> it_need ) ) { db_printf ( " " ) ; comma = 0 ; if ( ie -> ie_flags & IE_SOFT ) { db_printf ( " " ) ; comma = 1 ; } if ( ie -> ie_flags & IE_ENTROPY ) { if ( comma ) db_printf ( " " ) ; db_printf ( " " ) ; comma = 1 ; } if ( ie -> ie_flags & IE_ADDING_THREAD ) { if ( comma ) db_printf ( " " ) ; db_printf ( " " ) ; comma = 1 ; } if ( it != NULL && it -> it_need ) { if ( comma ) db_printf ( " " ) ; db_printf ( " " ) ; } db_printf ( " " ) ; } db_printf ( " \n " ) ; if ( handlers ) TAILQ_FOREACH ( ih , & ie -> ie_handlers , ih_next ) db_dump_intrhand ( ih ) ; }
Dump details about a event.
Dump details about a event .