Skip to contentSkip to conversation

usb endpoint devices

DISCUSSION Marco d'Itri 3 participants 3 messages Aug 13, 2006 – Aug 14, 2006

lore
Share & tools
lore
#0 lore raw

They are in 2.6.18-rc4, which names should they use? What do you think about this rule?

SUBSYSTEM="usb_endpoint",      PROGRAM="/bin/sh -c 'K=%k; E=$${K#*_}; K=$${K#usbdev}; K=$${K%%%%_*}; printf bus/usb/%%03i/%%03i_%%s $${K%%%%.*} $${K#*.} $$E'", \
                                NAME="%c"

DEVNAME='/dev/usbdev1.1_ep81' DEVPATH='/devices/pci0000:00/0000:00:10.0/usb1/1-0:1.0/usbdev1.1_ep81' SUBSYSTEM='usb_endpoint'

/dev/bus/usb/

|-- 001
|   |-- 001
|   `-- 001_ep81

...

Signature · 12 lines
ciao,
Marco

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 7 lines · Marco d'Itri

They are in 2.6.18-rc4, which names should they use? What do you think about this rule?

SUBSYSTEM="usb_endpoint",      PROGRAM="/bin/sh -c 'K=%k; E=$${K#*_}; K=$${K#usbdev}; K=$${K%%%%_*}; printf bus/usb/%%03i/%%03i_%%s $${K%%%%.*} $${K#*.} $$E'", \
                                NAME="%c"
Quoted 8 lines

DEVNAME='/dev/usbdev1.1_ep81' DEVPATH='/devices/pci0000:00/0000:00:10.0/usb1/1-0:1.0/usbdev1.1_ep81' SUBSYSTEM='usb_endpoint'

/dev/bus/usb/

|-- 001
|   |-- 001
|   `-- 001_ep81

They are not functional now, it's work-in-progress. And are you sure, that this will not confuse libusb access? We should probably leave them where they are, and not move them into the weird usbfs directory layout.

Kay

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Marco d'Itri
Quoted 12 lines · Kay Sievers
Quoted 11 lines · Marco d'Itri

They are in 2.6.18-rc4, which names should they use? What do you think about this rule?

SUBSYSTEM="usb_endpoint",      PROGRAM="/bin/sh -c 'K=%k; E=$${K#*_}; K=$${K#usbdev}; K=$${K%%%%_*}; printf bus/usb/%%03i/%%03i_%%s $${K%%%%.*} $${K#*.} $$E'", \
                                NAME="%c"

DEVNAME='/dev/usbdev1.1_ep81' DEVPATH='/devices/pci0000:00/0000:00:10.0/usb1/1-0:1.0/usbdev1.1_ep81' SUBSYSTEM='usb_endpoint'

Quoted 8 lines
Quoted 4 lines

/dev/bus/usb/

|-- 001
|   |-- 001
|   `-- 001_ep81

They are not functional now, it's work-in-progress. And are you sure, that this will not confuse libusb access? We should probably leave them where they are, and not move them into the weird usbfs directory layout.

I agree, please leave them alone for now, we have not fully determined how these will be used, and the kernel doesn't let you use those device nodes at all just yet :)

thanks,

greg k-h

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel