linux kernel config.h
I'm starting to learn how to write network device driver from:
http://tldp.org/LDP/LGNET/issue93/bhaskaran.html
In the article, the author compiles his example with:
cc -I/usr/src/linux-2.4/include/ -Wall -c rtl8139.c
My problem is that I'm using 2.6.35.23-generic 开发者_JAVA百科and I don't have "config.h" in "/usr/src/linux_headers-2.6.35-23-generic/linux/".
Is this file replaced by another file? Is there any site that gives you information for such changes?
Thanks, Pete.
The article http://tldp.org/LDP/LGNET/issue93/bhaskaran.html in your question is from 2003. I'm afraid the C code of Linux kernel changes too quickly, so the C code snippets and compilation instructions in that article most probably don't apply anymore.
Please also note that the article provides information about the 2.4.x Linux kernel versions, but you're trying to compile its code with a 2.6.x kernel. The 2.4 and 2.6 series are very different both in terms of C code and compilation instructions. My advice: try to find a more recent article (preferably from 2010 or 2009) and example code about the 2.6 series.
精彩评论