Re: question about file mapping

Adam Lackorzynski <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
On Wed May 13, 2015 at 14:24:35 +0800, [email protected] wrote:
> I create a file on tmpfs, and it read/write works fine. However, it cannot 
> mmap, and returns EINVAL.
> I found the reason is that dataspace of the file is not valid. 
> 
>         L4::Cap<L4Re::Dataspace> fds = fi->data_space()
>        if (!fds.is_valid())
>         {
>           return -EINVAL;
>         }
> 
> How to make it valid?  Is there another method to do file mapping?

tmpfs does not currently implement mmap, that's why it does not work. To
make it work we'd need use memory more wasteful inside tmpfs than
currently. Maybe it's worth it.




Adam
-- 
Adam                 [email protected]
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.