linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Device naming in udev...
@ 2006-10-11 15:22 Kris van Rens
  2006-10-11 18:19 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Kris van Rens @ 2006-10-11 15:22 UTC (permalink / raw)
  To: linux-hotplug

Hi there,

I'm maintaining a kernel-driver for which udev generates a character
device file. I set up a rule to keep a consistent place for
applications to find the device file.

The driver module is called 'dtx'.

This is the rule:

BUS="usb", SYSFS{manufacturer}="FOOBAR", NAME="usb/foobar/%k"

The match for the rule works fine, but the name assignment seems to be
udev-version dependent.

Here's what appeared in /dev in a faulty situation (on plug-in of
multiple devices):

/dev/dtx-0
/dev/dtx-1
...
...

and

/dev/usb/foobar/usbdev1.1
/dev/usb/foobar/usbdev1.2
...
...

What I want is the device file 'dtx-0...' in the directory '/dev/usb/foobar'.

After an exhaustive series of trials with different versions of udev,
it appeared that the problem showed up with versions of udev before
058, and was gone for versions 058 and higher. I checked the
udev-Changelog but couldn't find any explicit changes.

I have customers that apparently have old versions of udev and my
driver package must be backwards compatible to some extent.

My question: is there a way around this? Of course it's easy to just
demand customers to upgrade their system but that's easier said than
done. The best option probably is a script to generate static device
files...hmmm

I've been spending too much time on this anyhow...oh well.

Thanks in advance,

Kris

-------------------------------------------------------------------------
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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-11 18:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-11 15:22 Device naming in udev Kris van Rens
2006-10-11 18:19 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).