From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v7 02/19] eal: enable multi process init callback Date: Thu, 28 Jun 2018 14:09:04 +0100 Message-ID: <56a8016d-81b7-2fb2-a8f8-2046e693d737@intel.com> References: <20180607123849.14439-1-qi.z.zhang@intel.com> <20180628125708.39610-1-qi.z.zhang@intel.com> <20180628125708.39610-3-qi.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: konstantin.ananyev@intel.com, dev@dpdk.org, bruce.richardson@intel.com, ferruh.yigit@intel.com, benjamin.h.shelton@intel.com, narender.vangati@intel.com To: Qi Zhang , thomas@monjalon.net Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 137A98E60 for ; Thu, 28 Jun 2018 15:09:08 +0200 (CEST) In-Reply-To: <20180628125708.39610-3-qi.z.zhang@intel.com> Content-Language: en-US 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 28-Jun-18 1:56 PM, Qi Zhang wrote: > Introduce new API rte_eal_register_mp_init that help to register > a callback function which will be invoked right after multi-process > channel be established (rte_mp_channel_init). Typically the API > will be used by other module that want it's mp channel action callbacks > can be registered during rte_eal_init automatically. > > Signed-off-by: Qi Zhang > Acked-by: Anatoly Burakov > --- > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice > + * > + * Register a callback function that will be invoked right after > + * multi-process channel be established (rte_mp_channel_init). Typically > + * the function is used by other module that want it's mp channel > + * action callbacks can be registered during rte_eal_init automatically. > + * > + * @note > + * This function only take effect when be called before rte_eal_init, > + * and all registered callback will be clear during rte_eal_cleanup. > + * > + * @param callback > + * function be called at that moment. > + * > + * @return > + * - 0 on success. > + * - (<0) on failure. > + */ > +int __rte_experimental > +rte_eal_register_mp_init(rte_eal_mp_init_callback_t callback); This function is missing from the .map file. -- Thanks, Anatoly