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 03-27-2009, 06:47 AM   #1
xtothat
Member
 
Registered: Sep 2008
Location: Middle of Nowhere, England
Distribution: Slackware 14.1, Ubuntu 13.10
Posts: 39

Rep: Reputation: 15
[C/C++] Good ioctl() tutorial?


Hi everybody!! I'm trying to learn to query device drivers (specifically wireless), and I've seen that the way to do this is through ioctl() calls and feeding this info to an iwreq struct (at least, that's what I've gathered). I'm a relative newbie to this stuff, but I'm serious about learning it, even if it's quite tough. I've read this, but there's no final code to view, so I'm having trouble filling in the blanks.

Any help would be greatly appreciated, and thanks in advance!!!

X-T
 
Old 03-27-2009, 09:07 AM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
I think the best thing to do would be to learn how driver modules work at the kernel level so you have a good understanding of what happens when you call an ioctl. That will also allow you to go to the source code for the module to find undocumented ioctls and to see what they actually do. I haven't looked into those things for a while, though, so I don't know of a tutorial.
Kevin Barry
 
1 members found this post helpful.
Old 03-27-2009, 09:22 AM   #3
xtothat
Member
 
Registered: Sep 2008
Location: Middle of Nowhere, England
Distribution: Slackware 14.1, Ubuntu 13.10
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks! That's probably a good starting point. I'll look into it.

Any more ideas from anyone about anything which may help will still be greatly appreciated, though!

X-T
 
  


Reply

Tags
driver, ioctl, wireless


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
How to pass IOCTL arguments from usespace ioctl call devkpict Linux - Kernel 1 12-07-2007 06:45 PM
good samba tutorial niteshadw Linux - Newbie 1 04-20-2005 11:41 AM
looking for very good tutorial cintaputih Programming 1 02-12-2005 06:19 AM
need pointing to a good tutorial salparadise Linux - Networking 1 04-19-2004 11:30 AM
Any good tutorial for sendmail? Swift&Smart Linux - Software 4 03-31-2003 12:44 PM


All times are GMT -5. The time now is 10:03 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