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

int kLdrModRelocateBits ( PKLDRMOD  pMod,
void *  pvBits,
KLDRADDR  NewBaseAddress,
KLDRADDR  OldBaseAddress,
void *  pvUser 

Relocates the module bits previously obtained by kLdrModGetBits().

0 on succes, non-zero OS or kLdr status code on failure.
pMod The module.
pvBits Where to put the bits.
NewBaseAddress The new base address.
OldBaseAddress The old base address (i.e. the one specified to kLdrModGetBits() or as NewBaseAddressto the previous kLdrModRelocateBits() call).
pfnGetImport The callback ufor resolving external (imported) symbols.
pvUser The callback user argument.

Definition at line 711 of file kLdrMod.c.

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

Referenced by BasicTestsRelocate(), and TestModule().

    return pMod->pOps->pfnRelocateBits(pMod, pvBits, NewBaseAddress, OldBaseAddress, pfnGetImport, pvUser);

Generated by  Doxygen 1.6.0   Back to index