On 12/5/2017 4:41 PM, Thomas Monjalon wrote:
05/12/2017 09:27, Tan, Jianfeng: > > On 12/4/2017 5:31 PM, Thomas Monjalon wrote: > > > > The hook is in bus->scan(). > > I think we should launch a bus scan when there is a new device event. > > That's what I'm trying to say. We finally need to execute a handler as > of a device event to finish the job. Please be more specific, I am not sure to understand.
By the handler, I mean when we monitor the udev by select/poll/epoll and device uevents come, the application will execute a handler (or just a function) for each of such uevent. Then why not adding the vdev there?
Thanks, Jianfeng