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

static int kldrModLXGetBits ( PKLDRMOD  pMod,
void *  pvBits,
KLDRADDR  BaseAddress,
void *  pvUser 
) [static]

Gets the module bits.

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

0 on succes, non-zero OS or kLdr status code on failure.
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 2170 of file kLdrModLX.c.

References KLDRMOD::aSegments, kldrModLXDoLoadBits(), kldrModLXRelocateBits(), KLDRSEG::LinkAddress, and KLDRMOD::pvData.

    PKLDRMODLX  pModLX = (PKLDRMODLX)pMod->pvData;
    int         rc;

     * Load the image bits.
    rc = kldrModLXDoLoadBits(pModLX, pvBits);
    if (rc)
        return rc;

     * Perform relocations.
    return kldrModLXRelocateBits(pMod, pvBits, BaseAddress, pMod->aSegments[0].LinkAddress, pfnGetImport, pvUser);


Generated by  Doxygen 1.6.0   Back to index