Messages in this thread | | | Date | Fri, 21 Jan 2000 17:29:04 +0100 | From | Jens Axboe <> | Subject | Re: [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/
| |