Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102874292
D36896.id111573.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D36896.id111573.diff
View Options
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -252,17 +252,19 @@
/**
* @brief Interrupt type bits.
- *
- * These flags are used both by newbus interrupt
- * registration (nexus.c) and also in struct intrec, which defines
- * interrupt properties.
*
- * XXX We should probably revisit this and remove the vestiges of the
- * spls implicit in names like INTR_TYPE_TTY. In the meantime, don't
- * confuse things by renaming them (Grog, 18 July 2000).
+ * These flags may be passed by drivers to bus_setup_intr(9) when
+ * registering a new interrupt handler. The field is overloaded to
+ * specify both the interrupt's type and any special properties.
*
- * Buses which do interrupt remapping will want to change their type
- * to reflect what sort of devices are underneath.
+ * The INTR_TYPE* bits will be passed to intr_priority(9) to determine
+ * the scheduling priority of the handler's ithread. Historically, each
+ * type was assigned a unique scheduling preference, but now only
+ * INTR_TYPE_CLK receives a default priority higher than other
+ * interrupts. See sys/priority.h.
+ *
+ * Buses may choose to modify or augment these flags as appropriate,
+ * e.g. nexus may apply INTR_EXCL.
*/
enum intr_type {
INTR_TYPE_TTY = 1,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 7:19 AM (9 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14712357
Default Alt Text
D36896.id111573.diff (1 KB)
Attached To
Mode
D36896: bus.h: rewrite comment describing intr_type
Attached
Detach File
Event Timeline
Log In to Comment