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

int kLdrModFixupMapping ( PKLDRMOD  pMod,
PFNKLDRMODGETIMPORT  pfnGetImport,
void *  pvUser 
)

Fixup the mapping made by kLdrModMap().

The caller is only responsible for not calling this function more than once without doing kLDrModReload() inbetween.

Returns:
0 on success, non-zero OS or kLdr status code on failure.
Parameters:
pMod The module.
pfnGetImport The callback for resolving external (imported) symbols.
pvUser The callback user argument.

Definition at line 608 of file kLdrMod.c.

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

Referenced by BasicTestsSubMap2(), and kldrDyldModFixup().

{
    KLDRMOD_VALIDATE(pMod);
    return pMod->pOps->pfnFixupMapping(pMod, pfnGetImport, pvUser);
}


Generated by  Doxygen 1.6.0   Back to index