Phoenix
Object-oriented orthogonally persistent operating system
Public Types | Static Public Member Functions | Public Attributes
KmemDebugOverhead Struct Reference

Overhead for dynamically allocated memory chunks for storing debug information. More...

List of all members.

Public Types

enum  Flags { F_ARRAY = 0x1 }
 Flags for memory chunks. More...

Static Public Member Functions

static void * Allocate (size_t size, bool isArray=false, size_t align=0, const char *file=0, int line=0)
 Allocate chunk of memory with overhead.
static void Free (void *ptr, bool isArray=false)
 Free chunk of memory with overhead.

Public Attributes

u32 magic
 Magic value.
u32 line
 Source file line number.
size_t size
 Source file name.
u32 align
 Allocation alignment.
u32 flags
 Memory chunk flags from Flags.

Detailed Description

Overhead for dynamically allocated memory chunks for storing debug information.


Member Enumeration Documentation

Flags for memory chunks.

Enumerator:
F_ARRAY 

Array allocation.


Member Function Documentation

void * KmemDebugOverhead::Allocate ( size_t  size,
bool  isArray = false,
size_t  align = 0,
const char *  file = 0,
int  line = 0 
) [static]

Allocate chunk of memory with overhead.

Parameters:
sizeAllocation size for client data.
isArraytrue if it was array allocation.
alignClient data alignment.
fileSource file name.
lineSource file line number.
Returns:
Pointer to client data.
void KmemDebugOverhead::Free ( void *  ptr,
bool  isArray = false 
) [static]

Free chunk of memory with overhead.

Parameters:
ptrPointer to client data.
isArraytrue if it is array allocation.

Member Data Documentation

Allocation alignment.

Memory chunk flags from Flags.

Source file line number.

Magic value.

Source file name.

Allocation size.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines