Re: freeing a static after one use only?

From: Mike Galbraith (mikeg@weiden.de)
Date: Fri Feb 18 2000 - 21:37:29 EST


On Fri, 18 Feb 2000, Peter T. Breuer wrote:

> "A month of sundays ago Mike Galbraith wrote:"
> > On Fri, 18 Feb 2000, Peter T. Breuer wrote:
> >
> > > "A month of sundays ago Mike Galbraith wrote:"
> > > > On Thu, 17 Feb 2000, Peter T. Breuer wrote:
> > > > > use it once and then throw it away
> > > > vi://TheSource/include/linux/init.h/__initdata
> > Close but no banana.
> > Strike Two:
> > Package data in a seperate module.. load/use/eject?

hmm.. what's wrong with this picture? <aha>

A module containing only data is remarkably similar to a file.. and
load/use/eject is DAMNED similar to open/read/close. I suppose cool
ideas deserve to be reinvented once in a while :)

> I tried this. No bananas. Maybe I didn't do it right. To check that
> theer's no obvious coding mistake, I just put the code of the second
> module back into the first module, and it works fine again. It oopsed
> after a short while the way I tried it with two modules.

<g> I think I'd go with the traditional file access methods instead.

        -Mike

-
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:22 EST