Messages in this thread | | | Subject | Re: [PATCH] mutliple root devs (take II) | Date | Fri, 01 Dec 2000 20:04:52 -0500 | From | Jeff Dike <> |
| |
campt@openmars.com 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 majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |