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

void kldrDyldModCallTerm ( PKLDRDYLDMOD  pMod  ) 

Calls the module termination entry point if any.

This'll change the module status to PENDING_GC.

Parameters:
pMod The module that should be initialized.

Definition at line 1090 of file kLdrDyldMod.c.

References KLDRDYLDMOD::enmState, KLDRDYLDMOD::hMod, KLDRDYLDMOD_ASSERT, kLdrModCallTerm(), KLDRSTATE_PENDING_GC, KLDRSTATE_PENDING_TERMINATION, KLDRSTATE_TERMINATING, and KLDRDYLDMOD::pMod.

Referenced by kldrDyldDoModuleTerminationAndGarabageCollection().

{
    KLDRDYLDMOD_ASSERT(pMod->enmState == KLDRSTATE_PENDING_TERMINATION);

    pMod->enmState = KLDRSTATE_TERMINATING;
    kLdrModCallTerm(pMod->pMod, (KUPTR)pMod->hMod);
    pMod->enmState = KLDRSTATE_PENDING_GC;
    /* unlinking on destruction. */
}


Generated by  Doxygen 1.6.0   Back to index