Re: A question about memory fragmentation

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue Nov 07 2000 - 11:38:26 EST


> I think that is better to allocate a big piece of memory and get the n=
> odes
> from this buffer with my own memory management functions; Is this corre=
> ct?.

See the SLAB interface. It'll do that for you. Kmalloc uses SLAB so will do
similarly sane things

-
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 : Tue Nov 07 2000 - 21:00:22 EST