Thread (8 messages) flat view 8 messages, 3 authors, 14d ago

Re: [PATCH net-next v1 2/3] dinghai: add MSI-X interrupt pools

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-08-24 23:56:12
Also in: lkml

+ * Device vectors are managed in per-purpose pools. An IRQ carries a
+ * refcount so that several event queues can share one vector; on
+ * raise, the interrupt is fanned out through an atomic notifier chain
+ * attached to the IRQ.
+static int zxdh_irq_get_locked(struct zxdh_irq *irq)
+{
+	lockdep_assert_held(&irq->pool->lock);
+	if (WARN_ON_ONCE(!irq->refcount))
+		return 0;
+
+	irq->refcount++;
Why not use kref?

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help