[EMAIL PROTECTED] said:
> I was unsure if it was okay to be using kmalloc during early stages of
> init/main.c so I decided to follow the example allready set and just
> use a static array - can anyone advise on being able to do this
> dynamically? 

kmalloc is usable after mem_init(), I think.  Before that, you can use the 
boot memory allocator (see mm/bootmem.c).  In the arch that I'm most familiar 
with (arch/um), that is usable from the beginning of start_kernel.  I don't 
know about the other arches.

                                Jeff


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to