Re: Build scatterlist covering a process' text segment?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, Jun 17, 2011 at 8:18 AM, Metin KAYA <kayameti@xxxxxxxxx> 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
"size-of-allocation".

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux