On Mon, 21 Nov 2005, Takashi Iwai wrote:
>
> Now another question arises: Which is the recommended method for
> mmapping RAM pages, vma nopage callback or remap_pfn_range()?
>
> IIRC, in the ealier versions, the former was recommended because
> remap_page_range() with page-reserve was regarded as a hack.
I do believe Linus (CC'ed so he can defend himself from my slanders)
saw it that way for a long while. I believe he did, and still does,
think it more correct to work through the intended vm_operations_struct
methods. But has relented a little down the years, and now accepts
that remap_pfn_range is here to stay (as much as anything stays).
> But, looking through these changes, I feel that remap_pfn_range() is
> better (easier and stabler) than vma nopage...
I'm not going to make a recommendation: whatever suits you best.
It does sometimes look like people converted from remap_pfn_range
to nopage, just because they felt under pressure to do so.
It is curious that your snd_pcm_mmap_status_nopage seems to have been
affected and nothing else (I'd expected trouble in DRM but no sign).
I've CC'ed hch also, he did have some pungent views on how you ought
better to go about this.
Hugh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]