Barrelfish
Functions
memobj_anon.c File Reference

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.
 

Detailed Description

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.

Function Documentation

errval_t memobj_create_anon ( struct memobj_anon *  anon,
size_t  size,
memobj_flags_t  flags 
)

Initialize.

Parameters
memobjThe memory object
sizeSize of the memory region
flagsMemory object specific flags

This object handles multiple frames. The frames are mapped in on demand.