Interrupt Descriptions

Andrew Brampton brampton+freebsd at gmail.com
Thu Oct 1 09:15:38 UTC 2009


2009/9/30 John Baldwin <jhb at freebsd.org>:
> A few folks have asked recently for the ability to add descriptive strings to
> registered interrupt handlers.  This is especially true since the advent of
> MSI with multiple interrupts per device.  I hacked up a prototype today that
> adds a new 'bus_describe_intr()' that takes the IRQ resource, the void *
> cookie returned by bus_setup_intr() and var args description and appends that
> to the interrupt name in the thread and vmstat -i info.  The current patch
> only has the MI bits and the MD bits for amd64 as well as a sample change to
> the igb(4) driver.
>
> The patch is at http://www.FreeBSD.org/~jhb/patches/intr_describe.patch.
>

Very cool feature, which I had been hoping for on FreeBSD.

Well done.
Andrew


More information about the freebsd-arch mailing list