Barrelfish
Functions
memobj_fixed.c File Reference

memory object of anonymous type. The object maintains a list of frames. More...

Functions

errval_t memobj_create_fixed (struct memobj_fixed *fixed, size_t size, memobj_flags_t flags, size_t count, size_t chunk_size)
 Initialize. More...
 
errval_t memobj_destroy_fixed (struct memobj *memobj)
 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_fixed ( struct memobj_fixed fixed,
size_t  size,
memobj_flags_t  flags,
size_t  count,
size_t  chunk_size 
)

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.