WRT initialization, I would suggest refcounting: driver calls
init_crc32 at module load time, and cleanup_crc32 at module removal
time. When the first reference appears, the desired poly table
is initialized. When the last reference disappears, the poly table
is kfree'd. I considered other initialization scenarios but this seems
to be the cleanest.
Jeff
-
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/