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

int kLdrModCallThread ( PKLDRMOD  pMod,
KUPTR  uHandle,
unsigned  fAttachingOrDetaching 
)

Call the thread attach or detach function of a mapped module (if any).

Any per-thread TLS initialization/termination will have to be done at this time too.

Returns:
0 on success or no attach/detach function, non-zero on attach failure or invalid pMod.
Parameters:
pMod The module.
uHandle The module handle to use if any of the thread attach/detach functions requires the module handle.
Remarks:
Detach function failure will be ignored by the module interpreter.

Definition at line 657 of file kLdrMod.c.

References K_VALIDATE_FLAGS, KLDRMOD_VALIDATE, KLDRMODOPS::pfnCallThread, and KLDRMOD::pOps.

Referenced by kldrDyldModAttachThread(), and kldrDyldModDetachThread().

{
    KLDRMOD_VALIDATE(pMod);
    K_VALIDATE_FLAGS(fAttachingOrDetaching, 1);
    return pMod->pOps->pfnCallThread(pMod, uHandle, fAttachingOrDetaching);
}


Generated by  Doxygen 1.6.0   Back to index