Re: PATCH 2.5.4 i810_audio, bttv, working at all.

Jeff Garzik (jgarzik@mandrakesoft.com)
Thu, 14 Feb 2002 21:11:08 -0500


Pavel Machek wrote:
>
> Hi!
>
> > As an experiment a couple months ago, I got most of the PCI net drivers
> > down to ~200-300 lines of C code apiece, by factoring out common code
> > patterns into M4 macros. "m4 netdrivers.m4 epic100.tmpl > epic100.c"
>
> This is slightly extreme, right?
>
> But I'd like to see resulting epic100.tmpl ;-).

When you have to maintain more than 10 "cookie cutter" net drivers that
are 80-90% the same, you start to want such extremes :)

-- 
Jeff Garzik      | "I went through my candy like hot oatmeal
Building 1024    |  through an internally-buttered weasel."
MandrakeSoft     |             - goats.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/