Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-25-2004, 09:40 PM   #1
jessy jane
LQ Newbie
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
Angry writing device drivers

I'm doing a project in writing a network card device driver for RTLinux. Since, I'm new to Linux, I thought it would be better to start off from the basics.

Do I need to know the PCI bus architecture in detail. After mapping, the PCI configuration space to memory( memory mapped i/o) or via port addresses(i/o mapped i/o), what should be done.
I haven't clearly understood what the board initialization part does and also why do we need ioctl().
?? Are there any disadvantages in using pci-dma for a network card in RTLinux

?? Which would be a better option for RTLinux memory mapped or i/o mapped i/o

?? Do I have to allocate memory for the arriving packets or is it buffered in the NIC and sent to some buffer or the NIC sents packets to some allocated portion of memory made to point by the SCB.
?? I read RTLinux dosent create a net_device structure, it uses file_operations. Then, how does it treat a network device.
Also, how does the driver communicate with the protocol modules.

Thanking you
Old 09-25-2004, 10:12 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
I don't know specifically the answers to your questions, but the book Linux Device Drivers might help. It's published by O'Reilly and also available legally! online at .
Old 11-04-2004, 12:25 AM   #3
LQ Newbie
Registered: Nov 2004
Location: Houston
Posts: 1

Rep: Reputation: 0
Am in the same boat!

hi Jess,
Read your message and well mm actually want to do the same stuff i.e. write a device driver for a wireless code to be used a by a RT task.
However I am newbie too and have no idea where to start...
Please let me know how you started ...and how far have you reached..
bye for now


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
Writing Linux Device Drivers pr@vn_t Programming 3 08-22-2005 08:52 PM
Writing Device Driver... okeyla Programming 3 05-18-2005 07:41 AM
writing a loopback device ebh1 Linux - Newbie 2 03-12-2004 05:12 PM
Need help in writing device driver eshwar_ind Programming 1 02-07-2004 03:46 PM
writing device dummyagain Programming 2 10-18-2003 04:50 AM > Forums > Linux Forums > Linux - Newbie

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