linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Device naming in udev...
Date: Wed, 11 Oct 2006 18:19:38 +0000	[thread overview]
Message-ID: <20061011181938.GA29677@kroah.com> (raw)
In-Reply-To: <acb938930610110822o61c89d5bv5f1e46d9fce3d870@mail.gmail.com>

On Wed, Oct 11, 2006 at 05:22:59PM +0200, Kris van Rens wrote:
> Hi there,
> 
> I'm maintaining a kernel-driver for which udev generates a character
> device file.

Which driver is this?  Have a pointer to it anywhere?

> 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

I think you are picking up the usbfs device node here in your rule,
which is not what you want to have happen.  Try triggering off of the
kernel name for the device as well as the manufacturer name in order to
make sure you only catch the proper device.

Hope this helps,

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

      reply	other threads:[~2006-10-11 18:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-11 15:22 Device naming in udev Kris van Rens
2006-10-11 18:19 ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061011181938.GA29677@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).