ZenWINX Logo ZenWINX

Architecture - Reference Manual - Guides

Memory

Functions

void *__stdcall winx_virtual_alloc (SIZE_T size)
 Allocates a block of virtual memory.
void __stdcall winx_virtual_free (void *addr, SIZE_T size)
 Releases a block of virtual memory.
void *__stdcall winx_heap_alloc (SIZE_T size)
 Allocates a block of memory from the global growable heap.
void __stdcall winx_heap_free (void *addr)
 Frees a previously allocated memory block.

Function Documentation

void* __stdcall winx_virtual_alloc ( SIZE_T  size  ) 

Allocates a block of virtual memory.

Parameters:
[in] size the size of the block to be allocated, in bytes. Note that the allocated block may be bigger than the requested size.
Returns:
A pointer to the allocated block. NULL indicates failure.
Note:
  • Allocated memory is automatically initialized to zero.
  • Memory protection for the allocated pages is PAGE_READWRITE.

Definition at line 47 of file mem.c.

Referenced by winx_dbg_print().

void __stdcall winx_virtual_free ( void *  addr,
SIZE_T  size 
)

Releases a block of virtual memory.

Parameters:
[in] addr the memory block pointer.
[in] size the size of the block to be released, in bytes.

Definition at line 62 of file mem.c.

Referenced by winx_dbg_print().

void* __stdcall winx_heap_alloc ( SIZE_T  size  ) 

Allocates a block of memory from the global growable heap.

Parameters:
size the size of the block to be allocated, in bytes.
Returns:
A pointer to the allocated block. NULL indicates failure.

Definition at line 72 of file mem.c.

Referenced by winx_dbg_print_ex(), winx_fopen(), winx_get_drive_type(), winx_get_filesystem_name(), winx_get_volume_size(), winx_get_windows_boot_options(), winx_list_insert_item(), winx_printf(), winx_prompt(), and winx_unregister_boot_exec_command().

void __stdcall winx_heap_free ( void *  addr  ) 

Generated on Sat May 29 23:06:45 2010 for ZenWINX by doxygen 1.6.2