07-21-05 11:02 PM
I posted a similar post about this before. I am trying to find out
which device file a usb flash memory drive is on with a c program. I
am working on a solaris x86. I know i can use iostat -Enm which lets
me know the mount points for the devices i have mounted. I also can
use prtconf -D or -v to find out what the devices are, the vendors
names, etc... I am wondering if there is a way to do this in a similar
manner as prtconf and iostat but using APIs for these devices, withouth
having to call the above commands and then parse them out via a popen
function. I have been looking at usb_ functions as well as the ddi_
functions but i am not sure this is the way to go about. What i need
is: to find out the devices, the vendors names and where the devices
are mounted so a user can select the proper drive.
[ Post a follow-up to this message ]
|