From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Guo, Min" Date: Wed, 25 Jun 2003 09:05:22 +0000 Subject: RE: Question about Hot device Identity Message-Id: 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 I download the linux2.5.73 and use USB CDROM to do the testing. ls /sysfs > block bus cdev class devices firmware ls /sysfs/class >firmware input net pcmcia_socket scsi_device scsi_host tty usb ls /sysfs/block > fd0 hda initrd sda ls /sysfs/devices/pci0 >0000:00:00.0 0000:00:02.0 0000:00:0f.0 0000:00:0f.2 power 0000:00:00.1 0000:00:03.0 0000:00:0f.1 name ls /sysfs/devices/pci0/0000\:00\:0f.2/ >class irq power subsystem_device vendor device name resource subsystem_vendor 0000:00:0f.2 is my USB controller. So ,in such environment, how to configure DEVPATH in test file? I write it as DEVPATH=/devices/pci0/00:0f.0/, but I don't think it is right, because there are no usb device in the directory, if so, does it means Udev does not support the USB cdrom? If not, could you please tell me how to configure the USB BLOCK device's DEVPATH in test file? Another question is whether 2.5.73 supports USB mice? Sorry to ask you so many questions, because I can not run the Udev correctly till now, thank you very much! Thanks Guo Min -----Original Message----- From: Greg KH [mailto:greg@kroah.com] Sent: Wednesday, June 25, 2003 10:34 AM To: Guo, Min Cc: linux-hotplug-devel@lists.sourceforge.net Subject: Re: Question about Hot device Identity On Wed, Jun 25, 2003 at 10:24:43AM +0800, Guo, Min wrote: > Oh, could you please give me an example USB device that udev supported > now? Any usb device that uses the usb major number. This includes usb printers, scanners, and a bunch of other assorted devices. > I tried another USB cdrom, I found there are no dev file in > /sysfs/class directory. Block devices also work just fine. So this should work as long as you have something created in sys/block for your cdrom drive. > Whether I need patch > kernel.org/pub/linux/kernel/people/gregkh/misc/kobject-hotplug-?-2.5.67.patch > for USB cdrom? If you are using the 2.5.67 kernel, yes. I'd recommend 2.5.73, and you will not need it. > I would like to develop the test suite for Udev firstly, thank you for > your kind help. Great, that would be greatly appreciated. thanks, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ 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