|
Barrelfish
|
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. | |
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_fixed | ( | struct memobj_fixed * | fixed, |
| size_t | size, | ||
| memobj_flags_t | flags, | ||
| size_t | count, | ||
| size_t | chunk_size | ||
| ) |
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.
1.8.11