mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Duncan Sands <duncan.sands@math.u-psud.fr>
To: Arjan van de Ven <arjan@infradead.org>
Cc: Masatake YAMATO <jet@gyve.org>,
	linux-usb-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Avoid to use kmalloc in usb/core/message.c
Date: Tue, 5 Jul 2005 15:00:03 +0200	[thread overview]
Message-ID: <200507051500.03748.duncan.sands@math.u-psud.fr> (raw)
In-Reply-To: <1120562571.3180.36.camel@laptopd505.fenrus.org>

> > > I wonder why the invocations of kmalloc are needed in these functions.
> > 
> > Because some architectures can't do DMA to/from the stack.
> 
> doing dma to/from kmalloc also isn't too nice... should be using
> dma_alloc_*() API I guess

The USB core applies dma_map_single to the buffer, so its OK.

Ciao,

Duncan.

      reply	other threads:[~2005-07-05 13:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-05 10:12 Masatake YAMATO
2005-07-05 10:36 ` Duncan Sands
2005-07-05 11:22   ` Arjan van de Ven
2005-07-05 13:00     ` Duncan Sands [this message]

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=200507051500.03748.duncan.sands@math.u-psud.fr \
    --to=duncan.sands@math.u-psud.fr \
    --cc=arjan@infradead.org \
    --cc=jet@gyve.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    /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

all inboxes | Powered by JetHome®