| 
    libmsr
    0.3.0
    
   A friendlier interface to accessing MSRs on Intel platforms 
   | 
 
#include <stdio.h>#include <stdlib.h>#include "memhdlr.h"#include "libmsr_error.h"#include "libmsr_debug.h"
Functions | |
| void * | libmsr_malloc (size_t size) | 
| Allocate size bytes with malloc().   | |
| void * | libmsr_calloc (size_t num, size_t size) | 
| Allocate memory for an array of num elements of size bytes each with calloc().   | |
| void * | libmsr_realloc (void *addr, size_t size) | 
| Change allocation of existing memory to size bytes with realloc().   | |
| void * | libmsr_free (void *addr) | 
| Free single dynamic memory allocation.   | |
| void * | memhdlr_finalize (void) | 
| Deallocate any remaining memory allocations and deallocate tracking structure.   | |
| int | memory_handler (void *address, void *oldaddr, int type) | 
| Track all dynamic arrays allocated in libmsr to make deallocation simple.   | |
| void* libmsr_calloc | ( | size_t | num, | 
| size_t | size | ||
| ) | 
Allocate memory for an array of num elements of size bytes each with calloc().
| [in] | size | Number of bytes. | 
| [in] | num | Number of elements. | 
| void* libmsr_free | ( | void * | addr | ) | 
Free single dynamic memory allocation.
| [in] | addr | Pointer to dynamic array. | 
| void* libmsr_malloc | ( | size_t | size | ) | 
Allocate size bytes with malloc().
| [in] | size | Number of bytes. | 
| void* libmsr_realloc | ( | void * | addr, | 
| size_t | size | ||
| ) | 
Change allocation of existing memory to size bytes with realloc().
| [out] | addr | Pointer to dynamic array. | 
| [in] | size | Number of bytes. | 
| void* memhdlr_finalize | ( | void | ) | 
Deallocate any remaining memory allocations and deallocate tracking structure.
| int memory_handler | ( | void * | address, | 
| void * | oldaddr, | ||
| int | type | ||
| ) | 
Track all dynamic arrays allocated in libmsr to make deallocation simple.
| [out] | address | Pointer to dynamic array. | 
| [out] | oldaddr | Pointer to dynamic array. | 
| [in] | type | libmsr_mem_mgmt_e memory management identifier. | 
 1.8.2