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

static int kldrModNativeGetBits ( 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 1086 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