Re: why can't we kmalloc in a __setup'd function?

Peter Samuelson (peter@wire.cadcamlab.org)
Fri, 19 Nov 1999 09:35:40 -0600 (CST)


[Tigran Aivazian]
> If using kmalloc() is too early for the function prepared by
> __setup() how is one supposed to allocate memory in there?

I do not know the Right Answer, but why not use initdata bss:

static char[4096] __initdata foo;

Would that work, or does this data need to be available after the
__init purge?

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

- 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/