On Tue, 17 May 2005 [EMAIL PROTECTED] wrote: > Dear sir, > I am a developer working on Red Hat Linux with kernels 2.6 and 2.4. > I am connecting a bus-powered USB 4-port hub with USB floppy (connected on > this USB external hub) onto USB Root hub. > > I found that /var/log/messages file contains a message as below: > > May 17 15:54:30 localhost kernel: usb 1-2: new full speed USB device using > address 5 > May 17 15:54:30 localhost kernel: hub 1-2:1.0: USB hub found > May 17 15:54:30 localhost kernel: hub 1-2:1.0: 4 ports detected > May 17 15:59:01 localhost kernel: usb 1-2.3: new full speed USB device using > address 6 > May 17 15:59:01 localhost kernel: scsi5 : SCSI emulation for USB Mass Storage > devices > May 17 15:59:03 localhost kernel: Vendor: SMSC Model: USB FDC > Rev: 1.00 > May 17 15:59:03 localhost kernel: Type: Direct-Access > ANSI SCSI revision: 02 > May 17 15:59:03 localhost kernel: Attached scsi removable disk sdc at scsi5, > channel 0, id 0, lun 0 > May 17 15:59:03 localhost kernel: Attached scsi generic sg3 at scsi5, channel > 0, id 0, lun 0, type 0 > > May 17 15:59:03 localhost kernel: usb 1-2.3: 400mA over 100mA budget! > May 17 15:59:03 localhost kernel: hub 1-2:1.0: 64mA over power budget! > > May 17 15:59:03 localhost scsi.agent[8226]: disk at > /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2.3/1-2.3:1.0/host5/target5:0:0/5:0:0:0 > May 17 15:59:04 localhost fstab-sync[8303]: added mount point /media/floppy2 > for /dev/sdc > > May I please know, how can I get this information using IOCTLs, system calls > or using lsusb command?
If you want to get the information that's in /var/log/messages all you need to do is open /var/log/messages and read the contents of the file. Various pieces of that information are scattered throughout places like procfs and sysfs. If you can say more precisely which items you want to get, we can tell you where to find them. Alan Stern ------------------------------------------------------- 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_id=7412&alloc_id=16344&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel