Re: [patch-2.3.40-pre6] kzalloc() (ala kmem_zalloc() of SVR4)

From: Jens Axboe (axboe@suse.de)
Date: Fri Jan 21 2000 - 11:29:04 EST


On Fri, Jan 21 2000, Jes Sorensen wrote:
> Tigran> Hi Linus, a common code sequence of calling kmalloc() and then
> Tigran> memset(p,0,size) can be optimized into a single exported
>
> The only thing it does is to introduce a new non standard name which
> makes current code less readable.

I tend to agree. When (if) the concept of zeroing pages during idle
time ever gets into the kernel, then it might be worth it having
a way to get kmalloc() to return zeroed memory. For now it simply
reduces readability for zero gain.

-- 
*  Jens Axboe <axboe@suse.de>
*  Linux CD-ROM Maintainer
*  http://www.kernel.dk

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:26 EST