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

int kLdrModAllocTLS ( PKLDRMOD  pMod  ) 

Allocates Thread Local Storage for module mapped by kLdrModMap().

Calling kLdrModAllocTLS() more than once without calling kLdrModFreeTLS() between each invocation is not supported.

Returns:
0 on success, non-zero OS or kLdr status code on failure.
Parameters:
pMod The module.

Definition at line 556 of file kLdrMod.c.

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

Referenced by BasicTestsSubMap2(), kldrDyldModMap(), and kldrDyldModReload().

{
    KLDRMOD_VALIDATE(pMod);
    return pMod->pOps->pfnAllocTLS(pMod);
}


Generated by  Doxygen 1.6.0   Back to index