From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v14 6/7] eal: add failure handle mechanism for hot-unplug Date: Mon, 15 Oct 2018 12:43:27 +0200 Message-ID: <1818158.EDcYVnFPix@xps> References: <1498711073-42917-1-git-send-email-jia.guo@intel.com> <1538664375-22967-1-git-send-email-jia.guo@intel.com> <1538664375-22967-7-git-send-email-jia.guo@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, stephen@networkplumber.org, bruce.richardson@intel.com, ferruh.yigit@intel.com, konstantin.ananyev@intel.com, gaetan.rivet@6wind.com, jingjing.wu@intel.com, motih@mellanox.com, matan@mellanox.com, harry.van.haaren@intel.com, qi.z.zhang@intel.com, shaopeng.he@intel.com, bernard.iremonger@intel.com, arybchenko@solarflare.com, wenzhuo.lu@intel.com, anatoly.burakov@intel.com, jerin.jacob@caviumnetworks.com, jblunck@infradead.org, shreyansh.jain@nxp.com, helin.zhang@intel.com To: Jeff Guo Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id CC0E2239 for ; Mon, 15 Oct 2018 12:43:31 +0200 (CEST) In-Reply-To: <1538664375-22967-7-git-send-email-jia.guo@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 04/10/2018 16:46, Jeff Guo: > --- a/doc/guides/rel_notes/release_18_08.rst > +++ b/doc/guides/rel_notes/release_18_08.rst > @@ -117,6 +117,11 @@ New Features > > Added support for chained mbufs (input and output). > > +* **Added hot-unplug handle mechanism.** > + > + ``rte_dev_hotplug_handle_enable`` and ``rte_dev_hotplug_handle_disable`` are > + for enabling or disabling hotplug handle mechanism. EAL features should be inserted before mbuf features. And more importantly, it should be inserted in 18.11 release notes ;) > --- a/lib/librte_eal/common/eal_private.h > +++ b/lib/librte_eal/common/eal_private.h > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice No need of experimental mark for internal functions. > + * > + * Register the sigbus handler. > + * > + * @return > + * - On success, zero. > + * - On failure, a negative value. > + */ > +int > +rte_dev_sigbus_handler_register(void); > + > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice > + * > + * Unregister the sigbus handler. > + * > + * @return > + * - On success, zero. > + * - On failure, a negative value. > + */ > +int > +rte_dev_sigbus_handler_unregister(void); Why are you using rte_ prefix for private functions?