NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Ged USB VID/PID from the scsi device name



Hi, 

I am trying to add usb support to the smartmontools/netbsd and to make it work correctly i need to get USB device information using scsi device name. 

E.g. my USB disk is /dev/rsd0d and i would like to get information about parent usb device. So far i only see message in the kernel log, e.g.

                                           scsibus0 at umass0: 2 targets, 1 lun per target
                                           sd0 at scsibus0 target 0 lun 0: <SAMSUNG, HM500JI, > disk fixed

Is it possible to get info about parent device type/bus using some IOCTL or its not exposed to the userland? 


Home | Main Index | Thread Index | Old Index