Re: mmaping a kernel buffer to user space
- From: "Miguel Ojeda" <maxextreme@xxxxxxxxx>
- Date: Tue, 31 Oct 2006 19:44:19 +0000
On 10/31/06, Jiri Slaby <jirislaby@xxxxxxxxx> wrote:
Guillermo Marcus wrote:
> Hi Jiri,
>
> The fact that it does not works with RAM is well documented in LDD3,
> pages 430++. It says (and I tested) that remap_xxx_range does not work
> in this case. They suggest a method using nopage, similar to the one I
> implement.
Could somebody confirm, that this still holds?
Hum, I also tried it some days ago and it didn't work for me, so I
read LDD3 and I found such explanation about such limitation of
remap_pfn_range(). I heard then that changed in 2.6.15 because of the
new flag; so I have had the same situation.
If it is possible to remap a kernel buffer to userspace with
remap_pfn_range, how should be done the right way?
> I do not see why remap_xxx_range has the limitation, but it is there.-
> The question is then: can the limitation be removed, or can we implement
> a new function that maps RAM all at once without the need for a nopage
> implementation?
>
> In any case, here is the code.
Hmm, interesting. I used remap_pfn_range for this purpose today and it worked (I
double-checked this). I should probably do the rework :(.
regards,
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/
- References:
- mmaping a kernel buffer to user space
- From: Guillermo Marcus
- Re: mmaping a kernel buffer to user space
- From: Jiri Slaby
- Re: mmaping a kernel buffer to user space
- From: Guillermo Marcus
- Re: mmaping a kernel buffer to user space
- From: Jiri Slaby
- mmaping a kernel buffer to user space
- Prev by Date: Re: Linux 2.6.19-rc4
- Next by Date: [PATCH] sunrpc/auth_gss: auth_domain refcount fix
- Previous by thread: Re: mmaping a kernel buffer to user space
- Next by thread: Re: mmaping a kernel buffer to user space
- Index(es):
Relevant Pages
|