LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   dm driver ioctl call (https://www.linuxquestions.org/questions/programming-9/dm-driver-ioctl-call-324176/)

tantrix 05-16-2005 06:50 PM

dm driver ioctl call
 
I'm writing a user space program which should figure out if a device is active or not and secondly should classify the type of device it is..

the three types I have are --- /dev/sg*, /dev/sd* and /dev/md*
I'm using the default md driver for raid.
Now I wanted to make some ioctl calls to find out if a certain device exists or not, but was facing a lot of problems doing this..

can someone please help!! or suggest an easier way of doing it (other than string manipulation methods)...

Thanks


All times are GMT -5. The time now is 03:42 PM.