Re: freeing a static after one use only?

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Feb 17 2000 - 20:15:15 EST


> It's much larger than the thing it's used to create, so there is no
> advantage in overwriting it with the result.
>
> (I imagine that some of the lowlevel sound card drivers do this, when
> they want to load firmware).

They cheat and load a file. Its ugly its bad and Linus doesnt approve of
the sound approach.

You want to sit with most of the driver uninitialised until someone opens
it and does an ioctl load-microcode, then finish registering the devices

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:20 EST