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

static int kldrModPEReload ( PKLDRMOD  pMod  )  [static]

Reloads all dirty pages in a module previously mapped by kLdrModMap().

The module interpreter may omit code pages if it can safely apply code fixups again in a subsequent kLdrModFixupMapping() call.

The caller is responsible for freeing TLS before calling this function.

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

Definition at line 1321 of file kLdrModPE.c.

References KLDRMOD::aSegments, KLDRMOD::cSegments, KLDR_ERR_NOT_MAPPED, KLDRMOD::pRdr, KLDRMOD::pvData, and KLDRMODPE::pvMapping.


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

    /* the file provider does it all */
    return kRdrRefresh(pMod->pRdr, (void *)pModPE->pvMapping, pMod->cSegments, pMod->aSegments);

Generated by  Doxygen 1.6.0   Back to index