Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

static void kPrfFreeMem ( void *  pv  )  [static]

Frees memory.

Parameters:
pv The memory to free.

Definition at line 1333 of file kProfileR3.cpp.

Referenced by kPrfInitialize(), and kPrfTerminate().

{
#if K_OS == K_OS_WINDOWS
    VirtualFree(pv, 0, MEM_RELEASE);

#elif defined(KPRF_USE_MMAN)
    munmap(pv, 0); /** @todo check if 0 is allowed here.. */

#elif K_OS == K_OS_OS2
# ifdef INCL_DOSEXAPIS
    DosFreeMemEx(&pv);
# else
    DosFreeMem(&pv);
# endif

#else
# error not implemented
#endif
}


Generated by  Doxygen 1.6.0   Back to index