On Wed May 13, 2015 at 14:24:35 +0800, yang.w...@zte.com.cn 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                 a...@os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/

_______________________________________________
l4-hackers mailing list
l4-hackers@os.inf.tu-dresden.de
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers

Reply via email to