Re: [PATCH] mutliple root devs (take II)

From: Jeff Dike (jdike@karaya.com)
Date: Fri Dec 01 2000 - 20:04:52 EST

  • Next message: Russell Cattelan: "Re: [PATCH] livelock in elevator scheduling"

    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/



    This archive was generated by hypermail 2b29 : Fri Dec 01 2000 - 18:58:12 EST