LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-17-2008, 12:06 PM   #1
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Rep: Reputation: 31
Device driver programming


i want to compile the device driver programming...what is the produre to include an module....what are all the things i have to do...and how to do that things....please anyone help me....
 
Old 08-17-2008, 04:40 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shariefbe View Post
i want to compile the device driver programming...what is the produre to include an module....what are all the things i have to do...and how to do that things....please anyone help me....
Not sure what you're trying to say...your question isn't very clear. I'm assuming you mean "I want to learn how to write linux device drivers".

From a quick Google search:

http://www.freesoftwaremagazine.com/.../drivers_linux
http://www.freeos.com/articles/2677/

There are books available, along with lots of resources on Google.
 
Old 08-17-2008, 04:59 PM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
This book might be useful:

http://lwn.net/Kernel/LDD3/
 
Old 09-01-2008, 04:18 AM   #4
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
module programming

hi...i am New to linux....i am very much interested in MODULE programming....as i searched the google and found the HELLO WORLD basic module and i compiled it....its working...NOW my question is how to add any function with init finction so that i can call that function from outside....how to add the the simple new functions with init function.....kindly help me.....Thank you
 
Old 09-01-2008, 06:21 AM   #5
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
Hi,

Module programming (as everything which are in touch with the kernel) are something very difficult for beginners, you have to basically understand how the kernel works, you have to be a good C practicer, and you have to know how to search for resources on internet, within the kernel sources and so on... I say that not only to blame you, but you can't learn such a vast thing by asking!

By the way, I give you some pointers:
-take a look into the kernel sources documentation, and into the sources by themselves
-you can download this book for free: http://lwn.net/Kernel/LDD3/
-many websites discuss about the linux kernel, some examples: http://kernelnewbies.org/ http://lwn.net http://www.makelinux.net/kernel_map http://lxr.linux.no/ http://www.tldp.org/HOWTO/KernelAnalysis-HOWTO.html
 
Old 09-01-2008, 06:54 AM   #6
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
You can look up (and download) "Linux Device Drivers" 3rd edition by Rubini, Corbet, Kroah-Hartman.
 
Old 09-01-2008, 01:07 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I've merged two of your four closely related threads, and
moved the result to programming. I'd ask that you a) don't
"spread the love" around but keep to one thread, and b) would
like to suggest that you start reading, and actually working
with the things you intend to use. You won't become a kernel
hacker by asking people about basics.



Cheers,
Tink
 
  


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
Linux USB device driver programming? redarrow Programming 6 02-03-2008 02:54 AM
Newbie to device driver programming ben85 Programming 1 01-24-2008 04:48 PM
device driver programming rebel_angel Linux - Hardware 5 11-30-2006 04:48 AM
Linux device driver programming iammisc Programming 1 11-26-2005 10:46 AM
linux device driver programming chandansingh Programming 1 03-26-2005 07:30 AM

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

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