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

void kldrDyldModClearBindable ( PKLDRDYLDMOD  pMod  ) 

Marks a module as not bindable, i.e. it will not be considered when resolving names the unix way.

Parameters:
pMod The module.

Definition at line 414 of file kLdrDyldMod.c.

References KLDRDYLDMOD::Bind, KLDRDYLDMOD::enmState, KLDRDYLDMOD::fBindable, g_pkLdrDyldBindHead, g_pkLdrDyldBindTail, KLDRDYLDMOD_ASSERT, KLDRSTATE_OPEN, KLDRSTATE_PENDING_DESTROY, NULL, KLDRDYLDMOD::pNext, and KLDRDYLDMOD::pPrev.

Referenced by kldrDyldModCreate(), and kldrDyldModUnlink().

{
    KLDRDYLDMOD_ASSERT(pMod->enmState >= KLDRSTATE_OPEN && pMod->enmState < KLDRSTATE_PENDING_DESTROY);
    if (pMod->fBindable)
    {
        pMod->fBindable = 0;
        if (pMod->Bind.pPrev)
            pMod->Bind.pPrev->Bind.pNext = pMod->Bind.pNext;
        else
            g_pkLdrDyldBindHead = pMod->Bind.pNext;
        if (pMod->Bind.pNext)
            pMod->Bind.pNext->Bind.pPrev = pMod->Bind.pPrev;
        else
            g_pkLdrDyldBindTail = pMod->Bind.pPrev;
        pMod->Bind.pNext = NULL;
        pMod->Bind.pPrev = NULL;
    }
}


Generated by  Doxygen 1.6.0   Back to index