LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to make a dummy driver in kernel 2.6 (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-a-dummy-driver-in-kernel-2-6-a-641566/)

siddhi817 05-12-2008 12:24 AM

how to make a dummy driver in kernel 2.6
 
Hi folks, I m trying to write a dummy network driver for realtek8139 as part of my project...can anyone give me a specific c code for the purpose...I already tried a code availabe on the link given below but it doesnt compile [URL="http://linuxgazette.net/issue93/bhaskaran.html"]

digvijay.gahlot 05-12-2008 12:39 AM

http://www.shakthimaan.com/downloads.html
This one has a network driver program in it. I have not tested.

http://examples.oreilly.com/linuxdrive3/
This is from Linux Device Driver book, but you might have to modify as the code is quite old. I rewrote and tested with 2.6.23, it works well. The module name is snull.


All times are GMT -5. The time now is 12:32 PM.