Hello, > how about usbip_meta_driver_set(type)? Good. I'd like to confirm the 'type' parameter. #define USBIP_DRIVER_TYPE_HOST 0 #define USBIP_DRIVER_TYPE_DEVICE 1 Then usbip_meta_driver_init should not be included. It must be usbip_meta_driver_set(USBIP_DRIVER_TYPE_HOST). Thank you, n.iwata // > -----Original Message----- > From: Krzysztof Opasiak [mailto:k.opasiak@xxxxxxxxxxx] > Sent: Tuesday, December 06, 2016 6:51 PM > To: fx IWATA NOBUO; valentina.manea.m@xxxxxxxxx; shuah.kh@xxxxxxxxxxx; > gregkh@xxxxxxxxxxxxxxxxxxx; linux-usb@xxxxxxxxxxxxxxx > Cc: fx MICHIMURA TADAO > Subject: Re: [PATCH v13 05/10] usbip: exporting devices: modifications to > daemon > > Hi, > > On 12/06/2016 05:40 AM, fx IWATA NOBUO wrote: > > Hello, > > > >>> usbip_driver_<something> has widely used as function names and file > >>> names for host side abstraction. > >>> If they were usbip_host_<something>, I can use > >>> usbip_driver_open/close for both host(stub/vudc) and vhci. > >> > >> usbip_host<sth>() is not correct name to use for both stub and vudc > >> as from USB point of view stub is on a host but vudc is on a device > >> side > > > > OK. > > > >> maybe a kind of usbipd_backed_init() would be more suitable? > > > > Naming problem again but I recognize usbip_open_driver() is worse than > > connect. > > I think the word 'backend' has wide meaning and more strict word is > > better. > > > > init driver = &host_driver; NA > > ( ) driver = &device_driver; NA > > open usbip_driver_open usbip_vhci_driver_open > > close usbip_driver_close usbip_vhci_driver_close > > > > Here, I'd like to use word 'driver'. > > I searched analogy meta_, super_ in kernel. > > > > How about usbip_meta_driver_init/open/close()? > > Sounds good. Let's try. > > > > >>>> usbip_update_driver() is t totally unrelated to what this > >>>> assignment really does. > >> So as above. I suggest to call it usbipd_backend() instead of driver. > > > > Please, let me know good verb representing 'driver = &device_driver'. > > how about usbip_meta_driver_set(type)? > > Best regards, > -- > Krzysztof Opasiak > Samsung R&D Institute Poland > Samsung Electronics -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html