Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-16-2005, 07:50 PM   #1
LQ Newbie
Registered: Apr 2005
Posts: 6

Rep: Reputation: 0
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)...



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wvdial failing on ioctl call as regular user mugwump84 Linux - Software 3 11-27-2005 02:01 PM
What do you call your remote control? I call mine... RHLinuxGUY General 19 10-18-2004 07:23 AM
Ioctl() call fails Custer Linux - Wireless Networking 0 02-16-2004 01:47 PM
linux driver call? Axa Programming 6 01-19-2004 12:49 PM
ioctl unosoft Linux - Software 0 09-12-2003 07:58 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration