Re: usbfs, claiming entire usb devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pktoss@xxxxxxxxx said:

> >> I 'm imagining this driver having attributes in sysfs where a
> >> userspace rogram can inform it about what ports the program wishes
> >> o grab. 

> > Note that "ports" can be renumbered across reboots, so be
> > careful about that.

> Yes, I 've bumped into that once already. It is not a very big deal if
> you don't reboot very often, but I guess I should see if there is any
> way to have somewhat persistent naming for ports based on their
> physical location. I doubt this is implementable with current
> technology though. (At least in a straightforward way)

Would somebody please say a bit more about this area.  What "number" space 
are we discussing?

Do ports get renumbered on booting because of timing issues (race 
conditions)?  I guess I would expect that if a system had 2 USB host 
controllers./hubs on a PCI bus with one type X gizmo on each USB bus.

Another possibility is that things get assigned numbers in the order they are 
plugged in and then get a new set of numbers based on probe order when the 
system is rebooted.

I have a box with several serial (GPS) things.  I had troubles until I added 
things like the following to udev rules:
  KERNEL=="ttyUSB*", KERNELS=="5-2:1.0",    MODE="0666", SYMLINK+="gps4"



-- 
These are my opinions, not necessarily my employer's.  I hate spam.



--
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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux