libmemalloc  v4.0.00
Modern Memory Allocator
Loading...
Searching...
No Matches
mmap_t Struct Reference

Tracks memory-mapped regions for large allocations. More...

#include <libmemalloc.h>

Collaboration diagram for mmap_t:

Public Attributes

void * addr
 
size_t size
 
struct MmapBlock * next
 

Detailed Description

Tracks memory-mapped regions for large allocations.

Each node records the base address and size of an mmap() allocation, forming a linked list maintained by the allocator.

Fields:
  • addr – Base address returned by mmap()
  • size – Total mapped region size (rounded to pages)
  • next – Next region in allocator’s mmap list

Member Data Documentation

◆ addr

void* mmap_t::addr

Base address returned by mmap()

◆ next

struct MmapBlock* mmap_t::next

Next region in the allocator’s mmap list

◆ size

size_t mmap_t::size

Total mapped region size (rounded to pages)


The documentation for this struct was generated from the following file: