From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 19 Apr 2006 21:04:39 +0000 Subject: Re: udevtest conflicts with reality Message-Id: <20060419210439.GA22745@kroah.com> List-Id: References: <20060418171520.J25073@chenjesu.americas.sgi.com> In-Reply-To: <20060418171520.J25073@chenjesu.americas.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Apr 19, 2006 at 10:36:12AM -0500, Brent Casavant wrote: > On Wed, 19 Apr 2006, Kay Sievers wrote: > > > Looks like the driver is not using the driver core properly and you > > don't pass the dev_t to the class function, which will automatically > > create the "dev" file in sysfs and add MAJOR=, MINOR= to the event > > environment. Recent udev versions depend on the variable in the > > environment and don't open the "dev" file like udevtest is doing it. > > OK, I suppose that makes sense. The code currently calls > class_device_register() before calling cdev_add(). I imagine > swapping the order of those operations will fix the problem. > > Does that sound about right? Yes, that should do it. thanks, 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&kid0709&bid&3057&dat1642 _______________________________________________ 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