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

int kLdrModGetBits ( PKLDRMOD  pMod,
void *  pvBits,
KLDRADDR  BaseAddress,
PFNKLDRMODGETIMPORT  pfnGetImport,
void *  pvUser 
)

Gets the module bits.

The module interpreter will fill a mapping allocated by the caller with the module bits reallocated to the specified address.

Returns:
0 on succes, non-zero OS or kLdr status code on failure.
Parameters:
pMod The module.
pvBits Where to put the bits.
BaseAddress The base address that should correspond to the first byte in pvBits upon return.
pfnGetImport The callback ufor resolving external (imported) symbols.
pvUser The callback user argument.

Definition at line 856 of file kLdrMod.c.

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

Referenced by BasicTestsRelocate(), BasicTestsSub(), and TestModule().

{
    KLDRMOD_VALIDATE(pMod);
    return pMod->pOps->pfnGetBits(pMod, pvBits, BaseAddress, pfnGetImport, pvUser);
}


Generated by  Doxygen 1.6.0   Back to index