Unix Programming - ddi_* or usb_* functions to get the same info as prtconf

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2005 > ddi_* or usb_* functions to get the same info as prtconf





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ddi_* or usb_* functions to get the same info as prtconf
ofilha

2005-07-21, 6: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.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com