lkml.org 
[lkml]   [2010]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [fuse-devel] [PATCH] FUSE/CUSE: implement direct mmap support
Hello, Miklos.

On 02/11/2010 09:25 PM, Miklos Szeredi wrote:
>> If the server wants the two regions to be separate, it can map it to
>> say 5-11 and returnt he offset of 5. If it wants them to be shared,
>> it will have to mmap 1-2 and 6-7 and return offset of 1.
>
> What if region 6-7 is already occupied (e.g. because a separate region
> was put there)?

Allocating and managing the address space ranges are the server's
responsibility. If it expects the region to grow, it shouldn't
colocate those regions. The kernel is just giving the server an
address space to manage and letting it redirect mmaps to arbitrary
(sans the SHMLBA alignment restriction) part of it. The rest is upto
the server.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2010-02-11 13:45    [W:0.343 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site