* Re: udev and 30 files in /dev/
2005-05-13 4:51 udev and 30 files in /dev/ Daniel
@ 2005-05-13 18:53 ` Greg KH
2005-05-13 19:54 ` Daniel
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2005-05-13 18:53 UTC (permalink / raw)
To: linux-hotplug
On Thu, May 12, 2005 at 09:51:52PM -0700, Daniel wrote:
>
> I've been working with irda under linux and
> one problem that I'm unable to explain is
> why udev creates /dev/ircomm0 to /dev/ircomm30
>
> How do I configure udev to only create 2 such files?
> Is this controlled by the udev rule set?
No, it's controlled by the kernel. What does
/sys/class/whereever_ircomm_is_at show?
It's probably the driver that is creating 30 devices.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id\x16281&op=click
_______________________________________________
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] 5+ messages in thread* Re: udev and 30 files in /dev/
2005-05-13 4:51 udev and 30 files in /dev/ Daniel
2005-05-13 18:53 ` Greg KH
@ 2005-05-13 19:54 ` Daniel
2005-05-13 20:20 ` Greg KH
2005-05-13 23:16 ` Daniel
3 siblings, 0 replies; 5+ messages in thread
From: Daniel @ 2005-05-13 19:54 UTC (permalink / raw)
To: linux-hotplug
On Fri, 13 May 2005, Greg KH wrote:
> On Thu, May 12, 2005 at 09:51:52PM -0700, Daniel wrote:
> >
> > I've been working with irda under linux and
> > one problem that I'm unable to explain is
> > why udev creates /dev/ircomm0 to /dev/ircomm30
> >
> > How do I configure udev to only create 2 such files?
> > Is this controlled by the udev rule set?
>
> No, it's controlled by the kernel. What does
> /sys/class/whereever_ircomm_is_at show?
>
> It's probably the driver that is creating 30 devices.
There is no ircomm or irda mentioned in any of the
subdirectories of /sys/class. Could this be the problem?
If the driver is creating 30 devices through the kernel
does the kernel have a default setting for this?
-Daniel
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id\x16281&op=click
_______________________________________________
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] 5+ messages in thread
* Re: udev and 30 files in /dev/
2005-05-13 4:51 udev and 30 files in /dev/ Daniel
2005-05-13 18:53 ` Greg KH
2005-05-13 19:54 ` Daniel
@ 2005-05-13 20:20 ` Greg KH
2005-05-13 23:16 ` Daniel
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2005-05-13 20:20 UTC (permalink / raw)
To: linux-hotplug
On Fri, May 13, 2005 at 12:54:36PM -0700, Daniel wrote:
>
>
> On Fri, 13 May 2005, Greg KH wrote:
>
> > On Thu, May 12, 2005 at 09:51:52PM -0700, Daniel wrote:
> > >
> > > I've been working with irda under linux and
> > > one problem that I'm unable to explain is
> > > why udev creates /dev/ircomm0 to /dev/ircomm30
> > >
> > > How do I configure udev to only create 2 such files?
> > > Is this controlled by the udev rule set?
> >
> > No, it's controlled by the kernel. What does
> > /sys/class/whereever_ircomm_is_at show?
> >
> > It's probably the driver that is creating 30 devices.
>
>
> There is no ircomm or irda mentioned in any of the
> subdirectories of /sys/class. Could this be the problem?
Look in /sys/class/tty/ they should be in there. And they have to be
somewhere, otherwise udev will not create the device nodes :)
> If the driver is creating 30 devices through the kernel
> does the kernel have a default setting for this?
In looking at the ircomm driver, it is the one registering 32 different
devices with the tty layer. In order for it to only register the proper
devices (meaning, the ones that are actually present at that moment in
time), it would need to be modified.
So, unless you want to change the kernel, this is the way it is going to
work :)
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id\x16281&op=click
_______________________________________________
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] 5+ messages in thread
* Re: udev and 30 files in /dev/
2005-05-13 4:51 udev and 30 files in /dev/ Daniel
` (2 preceding siblings ...)
2005-05-13 20:20 ` Greg KH
@ 2005-05-13 23:16 ` Daniel
3 siblings, 0 replies; 5+ messages in thread
From: Daniel @ 2005-05-13 23:16 UTC (permalink / raw)
To: linux-hotplug
> Look in /sys/class/tty/ they should be in there. And they have to be
> somewhere, otherwise udev will not create the device nodes :)
OK, they are in /sys/class/tty. My mistake was looking for them
before loading the module.
>
> > If the driver is creating 30 devices through the kernel
> > does the kernel have a default setting for this?
>
> In looking at the ircomm driver, it is the one registering 32 different
> devices with the tty layer. In order for it to only register the proper
> devices (meaning, the ones that are actually present at that moment in
> time), it would need to be modified.
>
> So, unless you want to change the kernel, this is the way it is going to
> work :)
At lest the reason is now clear. I'll look at the code.
Maybe if it's something I can fix/change I'll do it.
Thanks!
-Daniel
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id\x16281&op=click
_______________________________________________
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] 5+ messages in thread