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

static int kldrModNativeRelocateBits ( PKLDRMOD  pMod,
void *  pvBits,
KLDRADDR  NewBaseAddress,
KLDRADDR  OldBaseAddress,
void *  pvUser 
) [static]

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 1104 of file kLdrModNative.c.

References KLDR_ERR_TODO.

#if K_OS == K_OS_OS2
    return ERROR_NOT_SUPPORTED; /* don't bother */

#elif K_OS == K_OS_WINDOWS || defined(__NT__)
    return ERROR_NOT_SUPPORTED; /* don't bother even if we could implement this. */

#elif K_OS == K_OS_DARWIN
    return KLDR_ERR_TODO; /* don't bother. */

# error "Port me"

Generated by  Doxygen 1.6.0   Back to index