[lkml]   [2000]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Porting Linux v2.2.x Ethernet driver to v2.4.x? wrote:
> Hello.
> I am about to modify a Linux v2.2.x-compatible Ethernet driver to allow it to
> work in the new v2.4.x kernel. Are there any documents which describe the
> differences in the device driver models (particularly PCI and Ethernet) of the 2
> kernel versions? If so, where can I find them?

Not all in one place. Read:

and the attached document, regarding netdevice member locking rules.

Your best reference is other PCI ethernet drivers. grep for
'pci_module_init' in drivers/net/*.c of the most recent 2.4.x kernel,
for a good start.

Also... before you start thinking about gunking-up your driver with all
sorts of backwards-compatibility code... remember that most 2.4.x
drivers can easily be backported to 2.2.x with a few magic macros and
static inline functions. I have an example of this sort of thing at


Jeff Garzik |
Building 1024 | Would you like a Twinkie?
MandrakeSoft |
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:45    [W:0.064 / U:2.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site