[patch-2.3.40-pre6] kzalloc() (ala kmem_zalloc() of SVR4)
Jens Axboe
axboe en suse.de
Sab Ene 22 02:00:59 CST 2000
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 en 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 en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda