lkml.org 
[lkml]   [2005]   [Oct]   [3]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
SubjectRe: [RFC][PATCH] SPI subsystem
FromArjan van de Ven <>
DateMon, 03 Oct 2005 13:07:36 +0200
On Mon, 2005-10-03 at 11:57 +0100, Mark Underwood wrote:

> > > > > Hmm, using local variables for messages, so DMA adapter drivers have
> > > > > to check if this is non-kmalloc'ed space (how?)
> > > > 
> > > > They can't check that.  It turns out that most current Linuxes
> > > > have no issues DMAing a few bytes from the stack.
> > >
> > > Will the DMA remapping calls work with data from the stack?
> > 
> > On "most current Linuxes" yes.  All I know about, in fact.
> > But it's not guaranteed.
> 
> OK. Thanks

please NEVER EVER do dma from or to a stack variable. It's not allowed
on all architectures and it is really really bad practice in general
anyway. 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-03 11:10    [from the cache]
©2003-2008