Index
This is the memory allocator.
Passed to duma allocator such as we know who is calling us.
_DUMA_allocList points to the array of slot structures used to manage the malloc arena. _duma_allocListSize is the size of the allocation list. Print message and halt program execution in crazy way. Deallocate allocated memory after running some checks, then open slot for use. Unknown use.
_duma_init sets up the memory allocation arena and the run-time configuration information. Whats are initialization start
A version of kmalloc. Memory region of slot.
Struct Slot contains all of the information about a malloc buffer
except for the contents of its memory.
Where did we get file info
State of slot values (empty, free, etc)
This is the begining of a linux kernel model duma.
allocateMoreSlots is called when there are only enough slot structures left to support the allocation of a single malloc buffer.
An integer type with same size as ‘void *’
DUMA_ALIGNMENT is a global variable used to control the default alignment of buffers returned by malloc(), calloc(), and realloc(). DUMA_ALLOW_MALLOC_0 is set if DUMA is to allow malloc(0). DUMA_FILL is set to 0-255 if DUMA should fill all new allocated memory with the specified value. DUMA_FREE_ACCESS is set if DUMA is to write access memory before freeing it. duma_init sets configuration settings.
internal variable: state of initialization
DUMA_MALLOC_FAILEXIT controls the behaviour of DUMA when malloc() fails and would return NULL. DUMA_MAX_ALLOC is used to control the maximum memory print of the program in total: When the sum of allocated and protected memory would exceed this value in kB, the protected memory is freed/deleted. Minimum required alignment by CPU.
Number of bytes per virtual-memory page, as returned by
Page_Size().
DUMA_PROTECT_BELOW is used to modify the behavior of the allocator. DUMA_PROTECT_FREE is used to control the disposition of memory that is released using free(). DUMA_SHOW_ALLOC is set if DUMA is to print all allocations and deallocations to the console.
An integer type with same size as ‘size_t’
DUMA_SLACKFILL is set to 0-255. Base 2 log computation.
MEMORY_CREATION_SIZE is the amount of memory to get from the
operating system at one time.
Report that VirtualProtect or mprotect failed and abort program execution.
Fake variable to make docs work right :(
internal variable: number of allocations processed so far internal variable: number of deallocations processed so far Allow memory access to allocated memory. Create memory. Free’s DUMA allocated memory. Deny access to allocated memory region. Retrieve page size. slotCount is the number of Slot structures in allocationList. slotsPerPage is the number of slot structures that fit in a virtual memory page. internal variable: sum of allocated -freed +protected memory in kB internal variable: sum of protected memory in kB internal variable: sum of allocated memory in kB unUsedSlots is the number of Slot structures that are currently available to represent new malloc buffers. KDUMA version string |