Function Memory.addMemHeader

addMemHeader -- Add system memory to public memory lists

MemHeader* addMemHeader (
  const(ulong) size,
  MemFlags attributes,
  short pri,
  void* membase,
  string name
);

This function adds the given memory range to the system management. The given memory must be large enough to keep the MemHeader and a MemChunk node. The first few bytes will be used to hold the MemHeader structure. The remainder will be made available to the rest of the world.

Parameters

NameDescription
size size of memory range to add
attributes memory attributes to associate with memory range
pri ln_Priority for this memory range
membase base address of memory to add
name a symbolic name for this memory range

Returns

Memory range is added to system memory management

See

initMemHeader(), remMemHeader(), Allocate(), deallocate()