Barrelfish
|
memory object of anonymous type. The object maintains a list of frames. More...
Functions | |
errval_t | memobj_create_anon (struct memobj_anon *anon, size_t size, memobj_flags_t flags) |
Initialize. More... | |
errval_t | memobj_destroy_anon (struct memobj *memobj, bool delete_caps) |
Destroy the object. | |
memory object of anonymous type. The object maintains a list of frames.
The object maintains a list of frames and a list of vregions. The lists are backed by slabs. The slabs may have to be grown, in which case the object will use vspace_pinned_alloc.
morecore uses this memory object so it cannot use malloc for its lists. Therefore, this uses slabs and grows them using the pinned memory.
errval_t memobj_create_anon | ( | struct memobj_anon * | anon, |
size_t | size, | ||
memobj_flags_t | flags | ||
) |
Initialize.
memobj | The memory object |
size | Size of the memory region |
flags | Memory object specific flags |
This object handles multiple frames. The frames are mapped in on demand.