Build scatterlist covering a process' text segment?

Dave Hylands dhylands at
Fri Jun 17 13:59:19 EDT 2011


On Fri, Jun 17, 2011 at 8:18 AM, Metin KAYA <kayameti at> wrote:
> Jonathan, it's kmalloc(), not kcalloc().

The kernel's kmalloc doesn't initialize the memory. There is a
function called kzalloc which will allocate and zero the memory, which
is sort of similar to the user-space calloc function, although calloc
takes num-of-items and size-of-one-item, whereas kzalloc takes

Dave Hylands
Shuswap, BC, Canada

More information about the Kernelnewbies mailing list