From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH V10 1/2] eal: add uevent monitor api and callback func Date: Mon, 15 Jan 2018 12:32:47 +0100 Message-ID: <3468196.BpI31Qveuv@xps> References: <1515575544-2141-3-git-send-email-jia.guo@intel.com> <6774704.u5U2Uf1Nb3@xps> 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, gaetan.rivet@6wind.com, konstantin.ananyev@intel.com, jblunck@infradead.org, shreyansh.jain@nxp.com, jingjing.wu@intel.com, helin.zhang@intel.com, motih@mellanox.com To: "Guo, Jia" Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id D24BF31FC for ; Mon, 15 Jan 2018 12:33:19 +0100 (CET) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 15/01/2018 11:55, Guo, Jia: > On 1/15/2018 7:16 AM, Thomas Monjalon wrote: > > Hi, > > > > 11/01/2018 15:05, Jeff Guo: > >> +/* A genaral callback for all registerd devices */ > > Typos: genaral, registerd > > > > So the callback is only for registered devices? > > What about hotplugged devices? > > the hotplugged devices is managed by the application, if it prior > registered and in the app's hotplug device list, will always be monitor > whenever it plug in and out. the eal only care about the registered > devices. I disagree. The application needs the EAL service to get notified of a new device plugged in. We should find a way to register the callback for all devices, including new ones.