LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-16-2005, 06:50 PM   #1
tantrix
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)...

Thanks
 
  


Reply


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 01:01 PM
What do you call your remote control? I call mine... RHLinuxGUY General 19 10-18-2004 06:23 AM
Ioctl() call fails Custer Linux - Wireless Networking 0 02-16-2004 12:47 PM
linux driver call? Axa Programming 6 01-19-2004 11:49 AM
ioctl unosoft Linux - Software 0 09-12-2003 06:58 PM


All times are GMT -5. The time now is 05:08 PM.

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