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

int kLdrModMap ( PKLDRMOD  pMod  ) 

Maps the module into the memory of the caller.

On success the actual addresses for the segments can be found in MapAddress member of each segment in the segment array.

Returns:
0 on success, non-zero OS or kLdr status code on failure.
Parameters:
pMod The module to be mapped.
Remarks:
kLdr only supports one mapping at a time of a module.

Definition at line 527 of file kLdrMod.c.

References KLDRMOD_VALIDATE, KLDRMODOPS::pfnMap, and KLDRMOD::pOps.

Referenced by BasicTestsSubMap(), and kldrDyldModMap().

{
    KLDRMOD_VALIDATE(pMod);
    return pMod->pOps->pfnMap(pMod);
}


Generated by  Doxygen 1.6.0   Back to index