LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-10-2010, 05:34 AM   #1
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Rep: Reputation: 31
device drivers-->basics


hello friends

i am doing a simple project involving automated power control in wlan cards..for this the requirements are

loading and unloading kernel modules-->this i have practiced using the linux device driver tutorials

now in my step two i have to understand and play around with the ORINOCO device driver to meet my requirements

can some one please guide me for step 2..please any reading material any tutorials...

i have a basic understanding of C...like few data strucs in C ,,,basic socket programmin using C/python...few VHDL module...that is all i know abt C

but using C for step 2 i sincerely need some help

thanx

regards!!
 
Old 02-10-2010, 05:54 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
you need the keep K&R next to you and it won't be enough. C in kernel space is very hard to write and use.

all i can tell you, read the driver starting from module start up function and follow the code. modifying some
bodyeles's code is always hard irrelevant to space. see if you can get what it does.
 
Old 02-10-2010, 09:51 AM   #3
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
please i dont need de motivating replies

gimme some positive leads
 
Old 02-10-2010, 09:54 AM   #4
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
i'm dead serious about reading the source code line by line, and not jumping without understanding what code in a line does.
 
Old 02-10-2010, 10:00 AM   #5
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
Quote:
Originally Posted by ankscorek View Post
i have a basic understanding of C...like few data strucs in C ,,,basic socket programmin using C/python...few VHDL module...that is all i know abt C
I would do some serious brushing on my C skills before attempting what you are proposing. Once you are fluent in memory management and referencing and other esoteric constructs like dynamic lists and process locks then you will be ready to jump in.
It is difficult, but it is also rewarding.

Read this
 
Old 02-12-2010, 06:28 AM   #6
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
assumption one if a person is requesting for such a tutorial it can be safely assumed he has brushed up his skill in at least C to a certain extent...

the book on linux dev driver by oreilley is only leading me nowhere
 
  


Reply



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
Device drivers from OS sandyvinay Linux - Hardware 1 05-11-2009 06:41 AM
Device Drivers Basics -- I want to write test cases MadAboutLinux123 Linux - Newbie 2 01-06-2007 01:39 AM
Device Drivers jyothisv Programming 2 10-10-2004 01:27 AM
Looking for device drivers... Chijtska Linux - Software 3 02-19-2002 06:55 PM
device drivers rajeshsweb Linux - Software 1 10-04-2001 10:57 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration