From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH 2.6.11] Altix patch for device driver support for the CX port of SGI's TIO chip
Date: Mon, 31 Jan 2005 22:33:03 +0000 [thread overview]
Message-ID: <200501311433.03959.jbarnes@engr.sgi.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0501311506590.30646-100000@fsgi025.americas.sgi.com>
On Monday, January 31, 2005 2:27 pm, Luck, Tony wrote:
> >> + sn_irq_info = kmalloc(sn_irq_size, GFP_KERNEL);
> >> + if (sn_irq_info = NULL)
> >> + return NULL;
> >> +
> >> + memset(sn_irq_info, 0x0, sn_irq_size);
> >
> >You can use kmalloc(sn_irq_size, GFP_KERNEL | __GFP_ZERO); to
> >avoid having to
> >memset it to 0.
>
> Umm, no. kmalloc() doesn't handle __GFP_ZERO. There is a
> kcalloc() that returns zeroed memory from the slab.
I was just checking on that to make sure, thanks. kcalloc it is then.
Jesse
next prev parent reply other threads:[~2005-01-31 22:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-31 21:11 [PATCH 2.6.11] Altix patch for device driver support for the CX port Bruce Losure
2005-01-31 21:30 ` [PATCH 2.6.11] Altix patch for device driver support for the CX port of SGI's TIO chip Christoph Hellwig
2005-01-31 22:08 ` Jesse Barnes
2005-01-31 22:27 ` Luck, Tony
2005-01-31 22:33 ` Jesse Barnes [this message]
2005-01-31 23:08 ` [PATCH 2.6.11] Altix patch for device driver support for the CX Bruce Losure
2005-01-31 23:13 ` Bruce Losure
2005-02-01 9:10 ` [PATCH 2.6.11] Altix patch for device driver support for the CX port of SGI's TIO chip Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200501311433.03959.jbarnes@engr.sgi.com \
--to=jbarnes@engr.sgi.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox