From mboxrd@z Thu Jan 1 00:00:00 1970 From: dhylands@gmail.com (Dave Hylands) Date: Fri, 17 Jun 2011 11:53:19 -0700 Subject: Build scatterlist covering a process' text segment? In-Reply-To: <20110617184635.GD1451@debian.debian> References: <4DDAE865.6000608@enea.com> <4DDD663C.4060201@enea.com> <4DE01E94.8000505@enea.com> <4DFAA41D.5010307@enea.com> <20110617151014.GB1451@debian.debian> <8B479D44-48BC-464C-B4D6-6CF0F7138E52@gmail.com> <20110617184635.GD1451@debian.debian> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hey Jonathan, On Fri, Jun 17, 2011 at 11:46 AM, Jonathan Neusch?fer wrote: > On Fri, Jun 17, 2011 at 06:18:06PM +0300, Metin KAYA wrote: >> Jonathan, it's kmalloc(), not kcalloc(). > > No, I was trying to suggest using kcalloc(), which behaves roughly like > the userspace calloc, and implements overflow checking, which you may > need and zeroing, which you don't seem to need. Cool - I missed that somehow. So we now have kmalloc, kcalloc, and kzalloc, and I see krealloc too. -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com