From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 13 May 2005 20:20:28 +0000 Subject: Re: udev and 30 files in /dev/ Message-Id: <20050513202027.GA13645@kroah.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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_id281&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