From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Auger Subject: [PATCH 06/10] irqbypass: Add a private field in the producer Date: Wed, 24 May 2017 22:13:19 +0200 Message-ID: <1495656803-28011-7-git-send-email-eric.auger@redhat.com> References: <1495656803-28011-1-git-send-email-eric.auger@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: eric.auger.pro@gmail.com, eric.auger@redhat.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, alex.williamson@redhat.com, pbonzini@redhat.com, marc.zyngier@arm.com, christoffer.dall@linaro.org Return-path: In-Reply-To: <1495656803-28011-1-git-send-email-eric.auger@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu List-Id: kvm.vger.kernel.org The producer callbacks may need to use a private data stored in the producer structure. Signed-off-by: Eric Auger --- --- include/linux/irqbypass.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/irqbypass.h b/include/linux/irqbypass.h index f0f5d26..7f18f1b 100644 --- a/include/linux/irqbypass.h +++ b/include/linux/irqbypass.h @@ -35,6 +35,7 @@ struct irq_bypass_consumer; * struct irq_bypass_producer - IRQ bypass producer definition * @node: IRQ bypass manager private list management * @token: opaque token to match between producer and consumer (non-NULL) + * @private: private data that may be used by producer callbacks (optional) * @irq: Linux IRQ number for the producer device * @add_consumer: Connect the IRQ producer to an IRQ consumer (optional) * @del_consumer: Disconnect the IRQ producer from an IRQ consumer (optional) @@ -48,6 +49,7 @@ struct irq_bypass_consumer; struct irq_bypass_producer { struct list_head node; void *token; + void *private; int irq; int (*add_consumer)(struct irq_bypass_producer *, struct irq_bypass_consumer *); -- 2.5.5