Re: [PATCH 10 of 20] ipath - support for userspace apps using coredriver
From: Bryan O'Sullivan
Date: Thu Mar 16 2006 - 10:09:43 EST
On Wed, 2006-03-15 at 21:54 -0800, Roland Dreier wrote:
> How about the case where one wants to map pages from
> dma_alloc_coherent() into userspace?
This is precisely our case, btw. The pages in question are allocated
during fops->open (some during dev->probe). mmap and nopage never
allocate anything.
> It seems one should do
> get_page() in .nopage, and then the driver can do dma_free_coherent()
> when the vma is released.
If that were the case, I'm unclear on how I would do this. Add a
vmops->close method along with the existing vmops->nopage handler?
<b
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/