From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032434AbdEXUQP (ORCPT ); Wed, 24 May 2017 16:16:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38224 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032076AbdEXUOB (ORCPT ); Wed, 24 May 2017 16:14:01 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com AD685C04BD2E Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=eric.auger@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com AD685C04BD2E From: Eric Auger 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 Cc: drjones@redhat.com, wei@redhat.com 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> In-Reply-To: <1495656803-28011-1-git-send-email-eric.auger@redhat.com> References: <1495656803-28011-1-git-send-email-eric.auger@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 24 May 2017 20:14:00 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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 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