[patch 14/38] pcmcia: id_table for wavelan_cs

Andrew Morton akpm at osdl.org
Mon Mar 7 18:09:57 EST 2005


Dominik Brodowski <linux at dominikbrodowski.net> wrote:
>
> > 	Also, what's up with the magic numbers ?
> 
> They're crc32 hashes of the strings. they're needed to export useful values
> to userspace for driver <-> device matching, as the strings themselves
> cannot be passed to userspace in an HOTPLUG call.

How on earth is a poor device driver developer supposed to know how to do
this?

Why can't we just calculate hash at runtime, from the string?



More information about the linux-pcmcia mailing list