NetBSD-Users archive

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

Re: Ged USB VID/PID from the scsi device name ("Samorukov,Alexey") writes:

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

The SCSI driver doesn't expose to what backend it is attached to.

You could query autoconfig using 'drvctl' to find out about the
device hierarchy, but that obviously relies on driver internals
that may change.

I wonder why smartmontools even needs to know wether the SCSI device
is umass or something else ? Any information about the disk should
be accessible by SCSI commands.

                                Michael van Elst
                                "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index