From mboxrd@z Thu Jan 1 00:00:00 1970 From: j.neuschaefer@gmx.net (Jonathan =?utf-8?Q?Neusch=C3=A4fer?=) Date: Fri, 17 Jun 2011 21:00:18 +0200 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: <20110617190018.GE1451@debian.debian> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Fri, Jun 17, 2011 at 08:46:35PM +0200, 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. Arvid, not you, sorry. Jonathan Neusch?fer