Hi,
I think you mean that you need to allocate a capability before calling
On Sat May 10, 2014 at 11:23:47 +0800, Yuxin Ren wrote:
> I cannot understand dataspace very well. I have some questions about it.
> Each time I want to alloc a piece of memory, I must create a dataspace
> first?
mem_alloc()->alloc()? Yes, you need to do that for each new memory to
be allocated.
> L4Re::Env::env<http://l4re.org/doc/classL4Re_1_1Env.html#aa1181d6256037deda5b5f83c2006ba60>()->mem_alloc()->alloc()
> I look at the example code of memory allocation.
> I found after create adataspace, we call
> to alloca memory via dataspace.No, don't do that. free the dataspace at mem_alloc() before allocating
> Can I call this function multiple times on the same dataspace instance
> without free? If so, what is its effect?
new memory on the same dataspace (capability).
Yes, you can do that.
> In addtion we use attach to map the dataspace. Can I attach the same
> dataspace multiple times without free?
Yes, exactly.
> In this case, does it mean that the same physical memory is mapped into
> different virtual address?
Adam
--
Adam adam@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