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

int kLdrModGetStackInfo ( PKLDRMOD  pMod,
const void *  pvBits,
KLDRADDR  BaseAddress,
PKLDRSTACKINFO  pStackInfo 
)

Gets the image stack info.

Returns:
0 on success, non-zero on failure.
Parameters:
pMod 
pvBits Optional pointer to bits returned by kLdrModGetBits() currently located at BaseAddress. This can be used by some module interpreters to reduce memory consumption.
BaseAddress The module base address to use when calculating the stack address. There are two special values that can be used: KLDRMOD_BASEADDRESS_LINK and KLDRMOD_BASEADDRESS_MAP.
pStackInfo The stack information.

Definition at line 369 of file kLdrMod.c.

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

Referenced by BasicTestsSub2(), and kldrDyldModGetMainStack().

{
    KLDRMOD_VALIDATE(pMod);
    return pMod->pOps->pfnGetStackInfo(pMod, pvBits, BaseAddress, pStackInfo);
}


Generated by  Doxygen 1.6.0   Back to index