Re: [RFC 1/2] kmemdup: introduce

From: Andrew Morton
Date: Fri Sep 08 2006 - 21:47:43 EST


On Sat, 9 Sep 2006 05:35:55 +0400
Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:

> P.S.: No idea why kstrdup() and kzalloc() use _____________kmalloc(),

It's all to do with slab debugging and __kmalloc_track_caller(): we want
to record the _caller_ of kstrdup() within the slab object rather than kstrdup()
itself.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/