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

static int kldrModPEUnmap ( PKLDRMOD  pMod  )  [static]

Unmaps a module previously mapped by kLdrModMap().

0 on success, non-zero OS or kLdr status code on failure.
pMod The module to unmap.

Definition at line 1253 of file kLdrModPE.c.

References KLDR_ERR_NOT_MAPPED, KLDRMODPE_ASSERT, kldrModPEDoUnmap(), KLDRMOD::pvData, and KLDRMODPE::pvMapping.

    PKLDRMODPE  pModPE = (PKLDRMODPE)pMod->pvData;
    int         rc;

     * Mapped?
    if (!pModPE->pvMapping)
        return KLDR_ERR_NOT_MAPPED;

     * We've got a common worker which does this.
    rc = kldrModPEDoUnmap(pModPE, pModPE->pvMapping);
    if (rc)
        return rc;
    return 0;


Generated by  Doxygen 1.6.0   Back to index