lkml.org 
[lkml]   [2006]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: dma_alloc_coherent
Kartik Babu wrote:
> I'm trying to replace consistent_alloc in a driver that was written for
> the 2.4 kernel with dma_alloc_coherent. My question is that I do not use
> a struct device * pointer at all. Browsing through the source for the
> 2.6.12
> on ARM XScale PXA255, I see that this argument may be NULL.
>
> Still, I'd like to know if passing NULL has any side effects. If so,
> what are they?
>
> I do however have a cdev structure taht I use for device registration,
> but I do not see how that would help.

What kind of a device is it? If it's a PCI device, the struct device can
be accessed with the dev pointer inside the struct pci_dev.

--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/

-
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: 2006-04-05 01:49    [W:0.022 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site