lkml.org 
[lkml]   [2000]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch-2.3.40-pre6] kzalloc() (ala kmem_zalloc() of SVR4)
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.178 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site