Heap partition

Class Genode::Heap

Heap that uses dataspaces as backing store

Inherits from

public Allocator

The heap class provides an allocator that uses a list of dataspaces of a ram session as backing store. One dataspace may be used for holding multiple blocks.

Public definitions

Enum

UNLIMITED 0

Public functions

Heap

Constructor

Arguments
Ram_session * ram_session
Rm_session  * rm_session
size_t       quota_limit
void        * static_addr
size_t       static_size

alloc

Return

bool

consumed

Return

size_t

free

overhead

Return

size_t

quota_limit

Reconfigure quota limit

Argument
size_t new_quota_limit
Return

int Negative error code if new quota limit is higher than currently used quota.

Class Genode::Sliced_heap

Heap that allocates each block at a separate dataspace

Inherits from

public Allocator

Public functions

Sliced_heap

Constructor

Arguments
Ram_session * ram_session
Rm_session * rm_session

alloc

Return

bool

consumed

Return

size_t

free

overhead

Return

size_t