From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CC7F7A04DD; Thu, 28 Nov 2019 01:03:26 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D66262B88; Thu, 28 Nov 2019 01:03:25 +0100 (CET) Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by dpdk.org (Postfix) with ESMTP id C128C28EE for ; Thu, 28 Nov 2019 01:03:23 +0100 (CET) Received: by mail-pl1-f196.google.com with SMTP id w7so10640898plz.12 for ; Wed, 27 Nov 2019 16:03:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TG1RVTUFjcBLmh0M0NvGo0VMh+9R6lttp/UgcHAcfh8=; b=wk61vTuOkVGfE6qsAwMT/aoUVN33KbXbXQd3fUgq8Ytzw5k0SRiSI55UfkxTjYSkEy 9/JeTAXnuOGpMzwoYLPgrRG8x28rS1bM9U89qI3SFZcANc3MSL27Uo1Vo8G4RRyYQ/TU NJ7/IIfsQsbYd/GGnUIzZGK1p8hSPjE0d/JoCXr0NU9vjXP7Y4gH0Du0oem3J85vS0p4 F8JgzmxZtfQZZ5AFGD0SbEKAf02mY02GKulBzVc7h1LvOavmAotqrarxpOVL+TkadRrJ 5UImaLAOj0pG07NI+JMu9rMT3tIIGhwbSR5SdYw7YCXgcFJkgvPVcVJyLoVdwI90a+bo gucw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TG1RVTUFjcBLmh0M0NvGo0VMh+9R6lttp/UgcHAcfh8=; b=RERoPjFALBJr5V3zegH/hncpnT3uaxU+NBG5qz+Pj26O7oHlmPIGo22EGdpNm8F7mT YCkWfhvYi2JhhMTBKuLPcMMUBfH0DP56xJFfqisW1+LWYYdWlttd+urX4GQJ/ktldBwK LpdBwRrixfgyPu+ba6Ac0OiViIOxmAV2Buuq/bObWE8ikw8r+rGvMLD4hG//iR/zcuna 6fWFfPfC8tm3efmUdiu2/lNpKkQXLYsqBH64kZFV0GHhEqsOMdsm3jMgX4pGyAcNIMhk +PXjwUF5pyCm+JZ3sz6HjDPdApPdFoaeDGM3YP4deHPyM1DtNhadKM9yQEBBYes78HSP 8GSA== X-Gm-Message-State: APjAAAU8mpJM1XSwLi1QgXcuiIxDZ9O34YIbcthUCzsfQ7yCg7dJM9Qy FAmd+hmK1uxZibo8MO2gbVod7g== X-Google-Smtp-Source: APXvYqxwUSjXHk4uj3o9HiCT3QvDFfALkC5wfSM3DlnEnno9wV8uWbppqfCpWnOrir4NUunCltIJ5g== X-Received: by 2002:a17:90a:c789:: with SMTP id gn9mr9071117pjb.99.1574899402871; Wed, 27 Nov 2019 16:03:22 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id s24sm17667246pfh.108.2019.11.27.16.03.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 16:03:22 -0800 (PST) Date: Wed, 27 Nov 2019 16:03:19 -0800 From: Stephen Hemminger To: Sunil Kumar Kori Cc: Bruce Richardson , , Harman Kalra Message-ID: <20191127160319.27915b22@hermes.lan> In-Reply-To: <20191127102222.31940-1-skori@marvell.com> References: <20191126061525.28507-1-skori@marvell.com> <20191127102222.31940-1-skori@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2 1/4] eal: add API to check if its interrupt context X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, 27 Nov 2019 15:52:19 +0530 Sunil Kumar Kori wrote: > > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice > + * > + * Check if currently executing in interrupt context > + * > + * @return > + * - positive in case of interrupt context > + * - zero in case of process context > + * - negative if unsuccessful > + */ > +__rte_experimental > +int > +rte_thread_is_intr(void); If you only need this in drivers, it should be internal not exposed as part of API