mco_sys_valloc

The wrapper for C function valloc() or its equivalent in the given system - allocate a system-aligned block of memory.

For an overview see page eXtremeDB System Wrappers

Prototype

    void * mco_sys_valloc( /*IN*/ mco_size_t size );

Arguments

size
The size of the new memory block.

Description

This function allocates a block of size bytes aligned to a multiple of the value returned by sysconf(_SC_PAGESIZE). The allocated memory block is aligned to a system memory page which is good for OS-operations such as AIO. It resembles the standard C function valloc() or its equivalent in the given system.

Return Codes

void *
A pointer to the allocated memory block.

Files

Header file:
mco.h
Source file:
mcosalhollow.c
Library:
libmcosalhollow.a
Header file:
mco.h
Source file:
mcosysmem.c
Library:
libmcosalmem.a