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

int kLdrModGetImport ( PKLDRMOD  pMod,
const void *  pvBits,
KU32  iImport,
char *  pszName,
KSIZE  cchName 
)

Get the name of an import module by ordinal number.

Returns:
0 and name in pszName on success. On buffer overruns KERR_BUFFER_OVERFLOW will be returned. On other failures and appropriate error code is returned.
Parameters:
pMod The module.
pvBits Optional pointer to bits returned by kLdrModGetBits(). This can be used by some module interpreters to reduce memory consumption.
iImport The import module ordinal number.
pszName Where to store the name.
cchName The size of the name buffer.

Definition at line 317 of file kLdrMod.c.

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

Referenced by BasicTestsSub2(), and kldrDyldModLoadPrerequisites().

{
    KLDRMOD_VALIDATE(pMod);
    return pMod->pOps->pfnGetImport(pMod, pvBits, iImport, pszName, cchName);
}


Generated by  Doxygen 1.6.0   Back to index