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

kLdrMod.c File Reference


Detailed Description

kLdr - The Module Interpreter.

Definition in file kLdrMod.c.

#include <k/kLdr.h>
#include "kLdrInternal.h"
#include <k/kCpu.h>
#include <k/kLdrFmts/mz.h>
#include <k/kLdrFmts/pe.h>
#include <k/kLdrFmts/lx.h>
#include <k/kLdrFmts/elf32.h>
#include <k/kLdrFmts/elf64.h>
#include <k/kLdrFmts/mach-o.h>

Go to the source code of this file.

Defines

#define KLDRMOD_ASSERT(expr)   kHlpAssert(expr)
#define KLDRMOD_STRICT   1
#define KLDRMOD_VALIDATE(pMod)   KLDRMOD_VALIDATE_EX(pMod, KERR_INVALID_PARAMETER)
#define KLDRMOD_VALIDATE_EX(pMod, rc)
#define KLDRMOD_VALIDATE_VOID(pMod)

Functions

int kLdrModAllocTLS (PKLDRMOD pMod)
int kLdrModCallInit (PKLDRMOD pMod, KUPTR uHandle)
int kLdrModCallTerm (PKLDRMOD pMod, KUPTR uHandle)
int kLdrModCallThread (PKLDRMOD pMod, KUPTR uHandle, unsigned fAttachingOrDetaching)
int kLdrModCanExecuteOn (PKLDRMOD pMod, const void *pvBits, KCPUARCH enmArch, KCPU enmCpu)
int kLdrModClose (PKLDRMOD pMod)
int kLdrModEnumDbgInfo (PKLDRMOD pMod, const void *pvBits, PFNKLDRENUMDBG pfnCallback, void *pvUser)
int kLdrModEnumResources (PKLDRMOD pMod, const void *pvBits, KLDRADDR BaseAddress, KU32 idType, const char *pszType, KU32 idName, const char *pszName, KU32 idLang, PFNKLDRENUMRSRC pfnCallback, void *pvUser)
int kLdrModEnumSymbols (PKLDRMOD pMod, const void *pvBits, KLDRADDR BaseAddress, KU32 fFlags, PFNKLDRMODENUMSYMS pfnCallback, void *pvUser)
int kLdrModFixupMapping (PKLDRMOD pMod, PFNKLDRMODGETIMPORT pfnGetImport, void *pvUser)
void kLdrModFreeTLS (PKLDRMOD pMod)
int kLdrModGetBits (PKLDRMOD pMod, void *pvBits, KLDRADDR BaseAddress, PFNKLDRMODGETIMPORT pfnGetImport, void *pvUser)
int kLdrModGetImport (PKLDRMOD pMod, const void *pvBits, KU32 iImport, char *pszName, KSIZE cchName)
int kLdrModGetStackInfo (PKLDRMOD pMod, const void *pvBits, KLDRADDR BaseAddress, PKLDRSTACKINFO pStackInfo)
int kLdrModHasDbgInfo (PKLDRMOD pMod, const void *pvBits)
int kLdrModMap (PKLDRMOD pMod)
int kLdrModMostlyDone (PKLDRMOD pMod)
KI32 kLdrModNumberOfImports (PKLDRMOD pMod, const void *pvBits)
int kLdrModOpen (const char *pszFilename, PPKLDRMOD ppMod)
int kLdrModOpenFromRdr (PKRDR pRdr, PPKLDRMOD ppMod)
int kLdrModQueryMainEntrypoint (PKLDRMOD pMod, const void *pvBits, KLDRADDR BaseAddress, PKLDRADDR pMainEPAddress)
int kLdrModQueryResource (PKLDRMOD pMod, const void *pvBits, KLDRADDR BaseAddress, KU32 idType, const char *pszType, KU32 idName, const char *pszName, KU32 idLang, PKLDRADDR pAddrRsrc, KSIZE *pcbRsrc)
int kLdrModQuerySymbol (PKLDRMOD pMod, const void *pvBits, KLDRADDR BaseAddress, KU32 iSymbol, const char *pchSymbol, KSIZE cchSymbol, const char *pszVersion, PFNKLDRMODGETIMPORT pfnGetForwarder, void *pvUser, PKLDRADDR puValue, KU32 *pfKind)
int kLdrModReload (PKLDRMOD pMod)
int kLdrModRelocateBits (PKLDRMOD pMod, void *pvBits, KLDRADDR NewBaseAddress, KLDRADDR OldBaseAddress, PFNKLDRMODGETIMPORT pfnGetImport, void *pvUser)
KLDRADDR kLdrModSize (PKLDRMOD pMod)
int kLdrModUnmap (PKLDRMOD pMod)

Variables

static PCKLDRMODOPS g_pModInterpreterHead = NULL


Generated by  Doxygen 1.6.0   Back to index