Skip to content

Struct mem_link

ClassList > mem_link

Provides an API for allocating/freeing a logical address space. More...

  • #include <mem_alloc.h>

Public Attributes

Type Name
uint64_t address
struct mem_link * next
struct mem_link * prev
uint64_t size

Detailed Description

There is no interaction with any OS memory allocation infrastructure, whether malloc, mmap, etc. The "address ranges" tracked by this allocator are arbitrary 64-bit integers. The allocator simply provides the bookeeping logic that ensures that a unique address with the appropriate size is returned for each allocation request, and that an allocation can be freed, ie released back to the available pool of logical address space for future allocations. The memory backing the allocator's internal data structures is managed by malloc()/free().

Public Attributes Documentation

variable address

uint64_t mem_link::address;

variable next

struct mem_link* mem_link::next;

variable prev

struct mem_link* mem_link::prev;

variable size

uint64_t mem_link::size;

The documentation for this class was generated from the following file docs/sw/include/opae/mem_alloc.h