Re: [dpdk-dev] [PATCH V10 1/2] eal: add uevent monitor api and callback func

2018-01-15 Thread Guo, Jia
On 1/15/2018 7:32 PM, Thomas Monjalon wrote: 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 ho

Re: [dpdk-dev] [PATCH V10 1/2] eal: add uevent monitor api and callback func

2018-01-15 Thread Thomas Monjalon
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? >

Re: [dpdk-dev] [PATCH V10 1/2] eal: add uevent monitor api and callback func

2018-01-15 Thread 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

Re: [dpdk-dev] [PATCH V10 1/2] eal: add uevent monitor api and callback func

2018-01-14 Thread Thomas Monjalon
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? > +/** > + * It registers the callback for the specific event. Multiple > + * callbacks cal be registere

[dpdk-dev] [PATCH V10 1/2] eal: add uevent monitor api and callback func

2018-01-11 Thread Jeff Guo
This patch aim to add a general uevent mechanism in eal device layer, to enable all linux kernel object uevent monitoring, user could use these APIs to monitor and read out the device status info that sent from the kernel side, then corresponding to handle it, such as when detect hotplug uevent typ