Barrelfish
|
memory object of anonymous type. The object maintains a list of frames. More...
Functions | |
errval_t | memobj_create_numa (struct memobj_numa *mo_numa, size_t size, memobj_flags_t flags, size_t node_count, size_t stride) |
Initialize. More... | |
errval_t | memobj_destroy_numa (struct memobj *memobj) |
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_numa | ( | struct memobj_numa * | mo_numa, |
size_t | size, | ||
memobj_flags_t | flags, | ||
size_t | node_count, | ||
size_t | stride | ||
) |
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.